Closed
Description
- Version: 9.2.0
- Platform: Linux debian 4.9.0-3-amd64 deps: update openssl to 1.0.1j #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 GNU/Linux
Executing this script leads to buf
being uninitialized.
let buf = Buffer.alloc(0x100, "This is not correctly encoded", "hex");
console.log(buf);
I highly suspect this is because Buffer.alloc()
calls buffer.fill()
after allocating memory, which doesn't fill the buffer when it cannot decode the value
parameter.