buffer: prevent abort on indexOf with lone surrogate needle · nodejs/node@37d1294 · GitHub
Skip to content

Commit 37d1294

Browse files
RafaelGSSaduh95
authored andcommitted
buffer: prevent abort on indexOf with lone surrogate needle
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com> PR-URL: #65430 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent aa3d94f commit 37d1294

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

‎src/string_bytes.cc‎

Lines changed: 4 additions & 2 deletions

‎test/parallel/test-buffer-indexof.js‎

Lines changed: 26 additions & 0 deletions

0 commit comments

Comments
 (0)