src: check for empty maybe local · nodejs/node@13a7e05 · GitHub
Skip to content

Commit 13a7e05

Browse files
Xstouditargos
authored andcommitted
src: check for empty maybe local
Using ToLocalChecked on MaybeLocal without verifying it's empty can lead to unattempted crash. PR-URL: #32339 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent aaf94fd commit 13a7e05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/udp_wrap.cc

Lines changed: 2 additions & 1 deletion

0 commit comments

Comments
 (0)