]> git.ipfire.org Git - people/ms/suricata.git/commit
detect: fixes InspectionBuffer id with transforms
authorPhilippe Antoine <contact@catenacyber.fr>
Mon, 13 Sep 2021 10:18:34 +0000 (12:18 +0200)
committerVictor Julien <vjulien@oisf.net>
Fri, 12 Nov 2021 14:21:06 +0000 (15:21 +0100)
commitc3339c853e3b35d896db68644ee7557fb725da18
tree09d65ad37366e55f82933ed08447e07cfd90cee8
parent244dd11c34152fbdb01636da8a9fa4a9fa0de050
detect: fixes InspectionBuffer id with transforms

When InspectionBufferGet gets called with base_id
Later InspectionBufferSetup must also be called with base_id

In case there were transforms, we had base_id != list_id

Not calling InspectionBufferSetup with the right id
resulted in leaving a dangling pointer,
because it was not added to det_ctx->inspect.to_clear_queue

Bug: #4681.
src/detect-file-data.c
src/detect-http-client-body.c