mirror of
https://github.com/nodejs/node.git
synced 2025-05-03 02:06:12 +00:00

When `napi_create_string_*` receives a null pointer as its second argument, it must null-check it before passing it into V8, otherwise a crash will occur. Signed-off-by: Gabriel Schulhof <gabrielschulhof@gmail.com> PR-URL: https://github.com/nodejs/node/pull/38923 Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
14 lines
197 B
Python
14 lines
197 B
Python
{
|
|
"targets": [
|
|
{
|
|
"target_name": "test_string",
|
|
"sources": [
|
|
"../entry_point.c",
|
|
"test_string.c",
|
|
"test_null.c",
|
|
"../common.c",
|
|
]
|
|
}
|
|
]
|
|
}
|