]> git.kaiwu.me - njs.git/commit
QueryString: fixed underflow in parse().
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)
commit9a78709b84694567b23287f153d27c0fad8d61a8
tree2f1c7f8fa4748878c5b8b36916aa997bdb5d58ef
parent7dcca79a30b750e9531cb76ed80a8890ab2695dd
QueryString: fixed underflow in parse().

Previously, njs_query_string_append() might be provided with invalid
val_size value when value in a key-value pair was absent.

Found by UndefinedBehaviorSanitizer.
external/njs_query_string_module.c