src: fix ArrayBuffer size for zero fill flag
Use `sizeof()` of the zero fill flag as the byte length of the `zeroFill` array buffer rather than `1`. This fixes running debug builds, which have boundary checks for typed array creations from native code enabled. PR-URL: https://github.com/nodejs/node/pull/7142 Fixes: https://github.com/nodejs/node/issues/7140 Reviewed-By:Colin Ihrig <cjihrig@gmail.com> Reviewed-By:
Fedor Indutny <fedor@indutny.com> Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By:
Nikolai Vavilov <vvnicholas@gmail.com>
parent
c4fadbc1
Please register or sign in to comment