Sitelet https://github.com/nodejs/node/issues/1485
Skip to content

isNaN(Buffer.prototype) crashes #1485

Description

@tolmasky

isNaN(Buffer.prototype)
Assertion failed: ((obj_data) != (nullptr)), function StringSlice, file ../src/node_buffer.cc, line 237.
Abort trap: 6

Activity

  1. monsanto commented on Apr 21, 2015

    @monsanto
    Contributor

    Reproduced, PR in one sec.

  2. added
    confirmed-bugIssues and PRs for confirmed bugs.
    bufferIssues and PRs related to the buffer subsystem.
    on Apr 21, 2015
  3. bnoordhuis commented on Apr 21, 2015

    @bnoordhuis
    Member

    Even simpler test case: +Buffer.prototype. It's because of the custom .toString method on the prototype object...

  4. Fishrock123 commented on Apr 21, 2015

    @Fishrock123
    Contributor

    isNaN(Buffer.prototype)

    I am very curious as to how/why you ended up doing this though.

  5. added a commit that references this issue on Jun 25, 2015
  6. trevnorris commented on Jun 25, 2015

    @trevnorris
    Contributor

    Fixed by 1cd9eeb.

  7. added a commit that references this issue on Jul 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bufferIssues and PRs related to the buffer subsystem.confirmed-bugIssues and PRs for confirmed bugs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions