]> git.kaiwu.me - njs.git/commit
QuickJS: fixed non-NULL terminated strings formatting in exceptions.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 13 Feb 2025 03:11:08 +0000 (19:11 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 19 Feb 2025 00:30:00 +0000 (16:30 -0800)
commitb6d108c812c07b11d4c3f65a48a5898139ac1ae4
tree754d96e34dd0f319ff1489b4c3af96543114487b
parent0b6eca0a123000297d4e18d46770bad7416d5056
QuickJS: fixed non-NULL terminated strings formatting in exceptions.

When "%*s" is specified, the first integer is interpreted as width.
Width specifies *minimum* number of characters to output. The next
string is expected to be NULL-terminated.

When "%.*s" is specified, the first integer is interpreted as precision.
Precision specifies *maximum* number of characters to output.
external/njs_shell.c
external/qjs_webcrypto_module.c
nginx/ngx_js.c
nginx/ngx_stream_js_module.c
src/qjs_buffer.c