]> git.kaiwu.me - njs.git/commit
Fixed njs_array_convert_to_slow_array().
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 11 Jun 2022 07:15:49 +0000 (00:15 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Sat, 11 Jun 2022 07:15:49 +0000 (00:15 -0700)
commit7b3fba59f96e51ddf602222958ec855fba1e4383
treed6fc8840e966cdff0e76e0c0e46f06de0251da06
parentdea214f34d7111159d09fe92af3646252db1cd7f
Fixed njs_array_convert_to_slow_array().

Previously, the function might free invalid pointer, as array->start is
not always points to the beginning of allocated memory block.

This closes #540 issue on Github.
src/njs_array.c
src/test/njs_unit_test.c