lib: fix max size check in Buffer constructor
A number -> uint32 type coercion bug made buffer sizes larger than kMaxLength (0x3fffffff) wrap around. Instead of rejecting the requested size with an exception, the constructor created a buffer with the wrong size. PR-URL: https://github.com/iojs/io.js/pull/657 Reviewed-By:Trevor Norris <trev.norris@gmail.com>
parent
605329d7
Please register or sign in to comment