]> git.ipfire.org Git - thirdparty/suricata.git/commit
http: fix nul deref on memcap reached 11119/head
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 17 May 2024 07:39:52 +0000 (09:39 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 22 May 2024 17:48:28 +0000 (19:48 +0200)
commit2bd3bd0e318f19008e9fe068ab17277c530ffb92
treeaaba6b33cf36f263adfda063662ab25d0386f476
parentb5566192130db48e22ad88f511e0ad56b56ef2f8
http: fix nul deref on memcap reached

HttpRangeOpenFileAux may return NULL in different cases, including
when memcap is reached.
But is only caller did not check it before calling HttpRangeAppendData
which would dereference the NULL value.

Ticket: 7029
(cherry picked from commit fd262df457f67f2174752dd6505ba2ed5911fd96)
src/app-layer-htp-range.c