Files
node/doc/api
Anna Henningsen b05ef978d3 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
Backport-PR-URL: https://github.com/nodejs/node/pull/17467
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-07 13:18:43 -05:00
..
2017-09-12 03:18:36 +02:00
2017-09-12 03:18:36 +02:00
2017-11-17 10:22:59 -05:00
2017-10-25 14:33:50 -04:00
2017-11-17 10:22:43 -05:00
2017-11-16 18:17:17 -05:00
2017-11-17 11:22:00 -05:00
2016-04-20 16:34:27 -07:00
2017-10-23 17:46:14 -04:00
2016-12-20 12:31:09 -08:00
2017-11-16 18:18:54 -05:00
2017-11-14 17:27:32 +00:00