]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ncbmbuf: improve itbmap_next() code
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Feb 2026 09:04:45 +0000 (10:04 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 23 Feb 2026 15:28:41 +0000 (16:28 +0100)
commitc528824094028b13c26b339bfd8eb4a9ab35a30c
treec5bcaf2ccf2f35eca4c2e8e6d42fe596142e4b32
parent868dd3e88b82dd6569ad44787914f42c61015c02
MINOR: ncbmbuf: improve itbmap_next() code

itbmap_next() advances an iterator over a ncbmbuf buffer storage. When
reaching the end of the buffer, <b> field is set to NULL, and the caller
is expected to stop working with the iterator.

Complete this part to ensure that itbmap type is fully initialized in
case null iterator value is returned. This is not strictly required
given the above description, but this is better to avoid any possible
future mistake.

This should fix coverity issue from github #3273.

This could be backported up to 2.8.
src/ncbmbuf.c