]> git.kaiwu.me - njs.git/commit
Fixed initialization of external prototypes with object entry.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 9 Jan 2024 00:40:42 +0000 (16:40 -0800)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 9 Jan 2024 00:40:42 +0000 (16:40 -0800)
commitde7e1aadc7d0795bc8f9a1c9898379e9455ea41e
treebe26dd23dc1e74d421ffa6e5c481d694f82638df
parent9a78709b84694567b23287f153d27c0fad8d61a8
Fixed initialization of external prototypes with object entry.

When external was NULL (for example, when .u.object.properties is not
declared), an arithmetic operation was performed with NULL pointer which
is undefined behavior.

Found by UndefinedBehaviorSanitizer.
src/njs_extern.c