Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buffer: do not affect memory after target for utf16 write
Do not write one character too much before shifting the whole result to the left when using UTF16-LE, possibly overwriting already-used memory while doing so. Fixes: nodejs#26422 PR-URL: nodejs#26432 Fixes: nodejs#26422 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
- Loading branch information