Files
node/doc/api
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-12-01 14:46:36 -08:00
2017-12-01 14:46:36 -08:00
2017-11-18 14:11:41 +02:00
2017-11-23 14:59:12 +01:00
2017-12-01 14:46:36 -08:00
2017-12-01 14:46:36 -08:00
2017-11-16 15:30:33 -05:00
2017-11-11 13:35:23 -08:00
2017-11-28 02:36:34 +01:00
2017-12-01 14:46:36 -08:00
2017-12-01 14:46:36 -08:00
2017-10-31 12:59:12 -07:00
2017-12-01 14:46:36 -08:00
2017-10-31 12:59:12 -07:00
2017-11-28 16:13:33 -05:00
2017-11-18 22:25:05 +01:00
2017-12-01 14:46:36 -08:00
2017-11-07 10:08:16 +00:00
2017-12-01 21:00:33 +01:00