GeezerVison is showing github.com — uncaught range error leads to crash with some mp3s · Issue #4 · biril/mp3-parser
uncaught range error leads to crash with some mp3s #4
Description
mp3-parser\lib\lib.js:223 Uncaught RangeError: Invalid typed array length
return String.fromCharCode.apply(null, new Uint16Array(buffer, offset, length / 2));
^
RangeError: Invalid typed array length
at new Uint16Array (native)
at Object.lib.readStr.ucs (node_modules\mp3-parser\lib\lib.js:223:52)
at readFrameContentIpls (node_modules\mp3-parser\lib\id3v2.js:331:53)
at Object.mp3Id3v2Parser.readId3v2TagFrame (node_modules\mp3-parser\lib\id3v2.js:559:28)
at Object.mp3Id3v2Parser.readId3v2Tag (node_modules\mp3-parser\lib\id3v2.js:638:36)
at Object.mp3Parser.readId3v2Tag (node_modules\mp3-parser\main.js:113:28)
Activity
conceptualspace commented on Jul 3, 2016
also seeing
"Uncaught RangeError: Offset is outside the bounds of the DataView",
node_modules\mp3-parser\lib\lib.js:135
if (seq[i] !== view.getUint8(offset + i)) { return false; }
^
RangeError: Offset is outside the bounds of the DataView
at DataView.getUint8 (native)
at FileReader.reader.onload
conceptualspace commented on Jul 3, 2016
it's occurring infrequently in a large batch job, where i'm just skipping the track if it throws the error. but if its helpful i can attach the problematic file
biril commented on Jul 3, 2016
Yes please do and I'll take a look. Thank you 👍
biril commented on Nov 20, 2016
Metadata
Metadata
Development
No branches or pull requestsIssue actions