Commit Graph

1 Commits (7164003fbe0c1dd8fa1e84b0d1d8eeafc2c5941c)

Author SHA1 Message Date
Fedor Indutny 827ee498e3 buffer: neuter external `nullptr` buffers
Neuter external `nullptr` buffers, otherwise their contents will be
materialized on access, and the buffer instance will be internalized.

This leads to a crash like this:

    v8::ArrayBuffer::Neuter Only externalized ArrayBuffers can be
    neutered

Fix: #3619
PR-URL: https://github.com/nodejs/node/pull/3624
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2015-11-02 08:37:38 -05:00