You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following error with the provided input:
input:/Users/cydarien/Documents/test/jpeg/node_modules/jpeg-js/lib/decoder.js:95
var precision = frame.precision;
^
TypeError: Cannot read property 'precision' of undefined
at decodeScan (/Users/cydarien/Documents/test/jpeg/node_modules/jpeg-js/lib/decoder.js:95:27)
at constructor.parse (/Users/cydarien/Documents/test/jpeg/node_modules/jpeg-js/lib/decoder.js:744:29)
at Object.decode (/Users/cydarien/Documents/test/jpeg/node_modules/jpeg-js/lib/decoder.js:1004:11)
at Object.<anonymous> (/Users/cydarien/Documents/test/jpeg/test.js:5:6)
at Module._compile (internal/modules/cjs/loader.js:1256:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1277:10)
at Module.load (internal/modules/cjs/loader.js:1105:32)
at Function.Module._load (internal/modules/cjs/loader.js:967:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
Code:
const jpeg = require('jpeg-js');
var fs = require('fs');
var buf = fs.readFileSync('crash');
jpeg.decode(buf);
Hi,
I got the following error with the provided input:
Code:
crash.zip
The text was updated successfully, but these errors were encountered: