GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Closed
Closed
uncaught range error leads to crash with some mp3s#4
Copy link
Assignees
biril
Labels
bug

Description

@conceptualspace
conceptualspace
opened on Jul 3, 2016
Issue body actions

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

  1. conceptualspace commented on Jul 3, 2016

    @conceptualspace
    conceptualspace
    on Jul 3, 2016
    Author
    More actions

    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

  2. conceptualspace commented on Jul 3, 2016

    @conceptualspace
    conceptualspace
    on Jul 3, 2016
    Author
    More actions

    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

  3. biril commented on Jul 3, 2016

    @biril
    biril
    on Jul 3, 2016
    Owner
    More actions

    Yes please do and I'll take a look. Thank you 👍

  4. biril commented on Nov 20, 2016

    @biril
    biril
    on Nov 20, 2016
    Owner
    More actions

    @conceptualspace Version 0.3.0 of the library fixes a defect in IPLS frame parsing, which is quite possible the source of the errors you were seeing. You can give it a go if this is still useful to you 😄 .

    I'm going to go ahead and close this as I believe it's resolved. Thanks for the original report.

  5. biril
    closed this as completedon Nov 20, 2016
  6. biril
    added
    bug
    on Nov 20, 2016
  7. biril
    self-assigned this
    on Nov 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @biril
    biril

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.