From 76c19567a76acff041413bf4500f5adbcbfcbade Mon Sep 17 00:00:00 2001 From: dank074 Date: Mon, 16 Aug 2021 01:01:54 -0500 Subject: [PATCH] check the right buffer --- src/swf-reader/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swf-reader/index.js b/src/swf-reader/index.js index dec4365..b24740b 100644 --- a/src/swf-reader/index.js +++ b/src/swf-reader/index.js @@ -368,7 +368,7 @@ function uncompress(swf, next) zlib.inflate(compressed_buff, function(err, buf) { - if(!Buffer.isBuffer(compressed_buff)) + if(!Buffer.isBuffer(buf)) { readSWFBuff(null, swf, next); }