]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect/frames: fix crash when parsing bad rule
authorPhilippe Antoine <pantoine@oisf.net>
Fri, 4 Nov 2022 14:17:19 +0000 (15:17 +0100)
committerVictor Julien <vjulien@oisf.net>
Tue, 10 Jan 2023 10:33:16 +0000 (11:33 +0100)
commit8c3107472b09261461814168d38385cce1fe6535
treef24c51cd36e09a0f5c84ad9062c3576ddaacf104
parent8bebc2390dd64f42f148bfb3cff2581c0086a04d
detect/frames: fix crash when parsing bad rule

Indexing of Signature::init_data::smlists would fail for a rule that
used a frame and fast_pattern w/o content, as the array would only be
expanded when adding a content.
Adding a check to see if there list id is in bounds
is an implicit check for the "no content" case.

Ticket: #5530
src/detect-parse.c