mirror of https://github.com/OISF/suricata
detect: check if signature uses too many buffers
Ticket: #6104 The approach in master branch is to change the prototype of SigMatchAppendSMToList so that it allocates itself the new SigMatch This approach requires to change all the 100-ish calls to SigMatchAppendSMToList and is thus quite a big change. For branch 7, we still wanted to avoid the buffer overflow, but did not want such an intrusive change, and still wanted to make the signature invalid. Instead of changing the prototype of the function, we make it return early, and set a flag in the signature which can be later checked by SigValidatepull/9539/head
parent
3ecb923db1
commit
299ee6ed55
Loading…
Reference in New Issue