]> git.kaiwu.me - njs.git/commit
CHB: avoid overflow when enforcing the chain limit
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 22 Sep 2026 03:28:29 +0000 (20:28 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 25 Sep 2026 23:00:29 +0000 (16:00 -0700)
commit6611698b90464d395ee6715b910682d83f1101c1
tree0be82e8b6f73fa6f2d070bfbdf14dfd7c4203a9a
parent6a6e7f404a642f23fcb61b4d928eb14b7466326c
CHB: avoid overflow when enforcing the chain limit

Check the requested size against the remaining chain capacity instead of
adding it to the current total.  This prevents the size check from wrapping
and bypassing the configured chain limit.
src/njs_chb.c