]> git.ipfire.org Git - thirdparty/suricata.git/commit
http: fix nul deref on memcap reached
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 04:45:09 +0000 (06:45 +0200)
commitfd262df457f67f2174752dd6505ba2ed5911fd96
tree4a750e56f436f0500031ee8a9ddc82ac70e44fda
parentf073cf2350596314be1375f8da81b42e2447c383
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
src/app-layer-htp-range.c