Files
node/lib
Сковорода Никита Андреевич dd67608bfd buffer: safeguard against accidental kNoZeroFill
This makes sure that `kNoZeroFill` flag is not accidentally set by
moving the all the flag operations directly inside `createBuffer()`.
It safeguards against logical errors like
https://github.com/nodejs/node/issues/6006.

This also ensures that `kNoZeroFill` flag is always restored to 0 using
a try-finally block, as it could be not restored to 0 in cases of failed
or zero-size `Uint8Array` allocation.
It safeguards against errors like
https://github.com/nodejs/node/issues/2930.
It also makes the `size > 0` check not needed there.

PR-URL: https://github.com/nodejs/node-private/pull/30
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
2016-04-26 10:04:35 -07:00
..
2015-10-08 17:32:08 -07:00
2016-01-26 20:53:05 +01:00
2016-03-26 23:46:32 +05:30
2016-03-21 15:48:51 -07:00
2016-04-15 10:36:01 -07:00
2016-04-12 17:21:29 -04:00
2016-04-25 09:56:52 -04:00
2015-01-31 23:47:29 -05:00