]> git.ipfire.org Git - thirdparty/suricata.git/commit
streaming: improve error handling
authorVictor Julien <vjulien@oisf.net>
Tue, 25 Apr 2023 11:28:05 +0000 (13:28 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 25 Apr 2023 13:19:47 +0000 (15:19 +0200)
commit5f1651282dbd5dc753dd7d0e9d117020662fc529
tree37dd401a184e64ca5d903907f7541e36c9d93e2a
parent999bf34257aa1d462c2b7071c2e8c1ba0817a955
streaming: improve error handling

util-streaming-buffer.c:205:5: warning: Potential leak of memory pointed to by 'sbb2' [unix.Malloc]
    BUG_ON(sbb2->offset < sbb->len);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./suricata-common.h:290:27: note: expanded from macro 'BUG_ON'
        #define BUG_ON(x) assert(!(x))
                          ^~~~~~~~~~~~
/usr/include/assert.h:99:28: note: expanded from macro 'assert'
     ? __ASSERT_VOID_CAST (0)                                           \
                           ^
1 warning generated.
src/util-streaming-buffer.c