]> git.ipfire.org Git - thirdparty/suricata.git/commit
app-layer: make some arrays even more dynamic
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 16 Jan 2025 07:40:46 +0000 (08:40 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Apr 2025 04:57:45 +0000 (06:57 +0200)
commit6750274d48d1de319ff29785bdb956604ebeaee7
treec36d365db9744975b11f71eb6be6f6afaf5f4788
parent58a8559440a91df96cb27a2e899a7f7ecbbafc53
app-layer: make some arrays even more dynamic

Ticket: 5053

Do not asume that we know the number of alprotos at the end
of AppLayerNamesSetup, but make arrays allocated by later
AppLayerProtoDetectSetup dynamic so that it can be reallocated
from AppLayerParserRegisterProtocolParsers

This helps have a single entry point for a protocol like SNMP
src/app-layer-detect-proto.c
src/app-layer-parser.c