Files
node/lib
Anna Henningsen 69a68c0b24 buffer: zero-fill buffer allocated with invalid content
Zero-fill when `Buffer.alloc()` receives invalid fill data.

A solution like https://github.com/nodejs/node/pull/17427 which switches
to throwing makes sense, but is likely a breaking change.

This suggestion leaves the behaviour of `buffer.fill()` untouched,
since any change to it would be a breaking change, and lets
`Buffer.alloc()` check whether any filling took place or not.

PR-URL: https://github.com/nodejs/node/pull/17428
Refs: https://github.com/nodejs/node/pull/17427
Refs: https://github.com/nodejs/node/issues/17423
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2017-12-05 12:35:10 +01:00
..
2017-11-28 03:10:10 +01:00
2017-11-25 22:33:42 +09:00
2017-11-29 14:16:43 -08:00
2017-11-16 15:42:46 -08:00
2017-11-28 16:32:15 -05:00
2017-12-01 20:44:52 +01:00
2017-11-14 17:31:26 -05:00
2017-12-01 21:00:33 +01:00
2017-11-24 00:13:44 +01:00
2017-11-22 09:05:12 -08:00