]> git.kaiwu.me - njs.git/commit
Fixed fuzzing target bug introduced in 4d4657128baf (0.7.1).
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 11 Jan 2022 13:02:33 +0000 (13:02 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 11 Jan 2022 13:02:33 +0000 (13:02 +0000)
commit19a351dad895003a37e3eeea53edb1f11ba9710b
tree924ff57dbb0523154b07954d898b625a2d6009e7
parentdc207775a557eef78c57d7b04b3e64d1804dc937
Fixed fuzzing target bug introduced in 4d4657128baf (0.7.1).

Previously, njs_process_script() took vm pointer from console object,
but after 4d4657128baf the object is not initialized in
LLVMFuzzerTestOneInput().

The fix is to always pass vm pointer explicitly.

This also closes #456 issue on Github.
src/njs_shell.c