diff options
author | ZYSzys <17367077526@163.com> | 2019-02-17 16:59:10 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-02-22 00:08:53 +0300 |
commit | 6fb7baf935442a1ceddcd0a585892456438f95aa (patch) | |
tree | 0cacb7315eeda5389a6a4005064c183b17a82c5a /src | |
parent | dbfe14c8092ba914afc22d4ed8b0e1937c27ac25 (diff) |
buffer: harden validation of buffer allocation size
This makes using `NaN` as the buffer size throw an error.
Fixes: https://github.com/nodejs/node/issues/26151
PR-URL: https://github.com/nodejs/node/pull/26162
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions