buffer: zero-fill uninitialized bytes in .concat()
This makes sure that no uninitialized bytes are leaked when the specified `totalLength` input value is greater than the actual total length of the specified buffers array, e.g. in Buffer.concat([Buffer.alloc(0)], 100). PR-URL: https://github.com/nodejs/node-private/pull/67 Reviewed-By:Anna Henningsen <anna@addaleax.net> Reviewed-By:
Rod Vagg <rod@vagg.org>
parent
88dcc7f5
Please register or sign in to comment