kevva / decompress

Extracting archives made easy
MIT License
415 stars 51 forks source link

Bug: TypeError #72

Closed yevgenypats closed 2 years ago

yevgenypats commented 5 years ago

Hey,

Found a bug that can be reproduced with:

decompress(Buffer.from('000001','hex')).catch((err)=>{console.log(err)})

> TypeError: Cannot read property 'toString' of undefined
    at module.exports (/Users/yevgenyp/fuzzitdev/jsfuzz/examples/bzip2/node_modules/decompress-unzip/node_modules/file-type/index.js:207:67)
    at /Users/yevgenyp/fuzzitdev/jsfuzz/examples/bzip2/node_modules/decompress-unzip/index.js:81:7
    at /Users/yevgenyp/fuzzitdev/jsfuzz/examples/bzip2/node_modules/decompress/index.js:19:43
    at Array.map (<anonymous>)
    at runPlugins (/Users/yevgenyp/fuzzitdev/jsfuzz/examples/bzip2/node_modules/decompress/index.js:19:34)
    at extractFile (/Users/yevgenyp/fuzzitdev/jsfuzz/examples/bzip2/node_modules/decompress/index.js:22:46)
    at /Users/yevgenyp/fuzzitdev/jsfuzz/examples/bzip2/node_modules/decompress/index.js:95:26
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

found using jsfuzz