mirror of https://github.com/lukechilds/node.git
Browse Source
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>v7.x
committed by
Nikolai Vavilov
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue