Merge branch 'patch/buffer-checks' into 'master'

check the right buffer

See merge request nitro/nitro-converter!7
This commit is contained in:
Bill 2021-08-17 21:37:24 +00:00
commit 4c6b65eef9

View File

@ -368,7 +368,7 @@ function uncompress(swf, next)
zlib.inflate(compressed_buff, function(err, buf) zlib.inflate(compressed_buff, function(err, buf)
{ {
if(!Buffer.isBuffer(compressed_buff)) if(!Buffer.isBuffer(buf))
{ {
readSWFBuff(null, swf, next); readSWFBuff(null, swf, next);
} }