src: fix possible dereference of null pointer · nodejs/node@11e4cd6 · GitHub
Skip to content

Commit 11e4cd6

Browse files
Eusgortargos
authored andcommitted
src: fix possible dereference of null pointer
There is a CHECK_NOT_NULL check before dereferencing node_env on line 710 in the "if" block, but there is no CHECK_NOT_NULL check before dereferencing node_env on line 721. Maybe it makes sense to put CHECK_NOT_NULL right after calling the Environment::GetCurrent function. PR-URL: #58459 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <midawson@redhat.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
1 parent ca0f5a0 commit 11e4cd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_api.cc

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)