mirror of https://github.com/OISF/suricata
detect/content-inspection: assert smd is set
DetectEngineContentInspectionInternal checked smd for NULL only after the recursion-limit return had read smd->type, and its NULL branch read smd->type too. No caller passes NULL: engines without a keyword list have no callback, empty sticky buffers fail to load, payload engines exist only with payload keywords, and the recursion stops at the last keyword. Drop smd from the NULL check and assert it with DEBUG_VALIDATE_BUG_ON.pull/16505/head
parent
e45e570f59
commit
031cc11679
Loading…
Reference in New Issue