]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ncbuf: missing malloc checks in standalone code
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 11 May 2023 13:28:20 +0000 (15:28 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 May 2023 07:45:30 +0000 (09:45 +0200)
commitceb13b5ed33271dfd7e8a324263bef9eddc733f6
tree5ca2e7358ab9b0314b64597f4aa055ffad101ce1
parent94df1b57ee0e2f3df97c0348f52ea7c74d98e12a
MINOR: ncbuf: missing malloc checks in standalone code

Some malloc resulsts were not checked in standalone ncbuf code.

As this is debug/test code, we don't need to explicitly handle memory
errors, we just add some BUG_ON() to ensure that memory is properly
allocated and prevent unexpected results.

This partially fixes issue GH #2130.

No backport needed.
src/ncbuf.c