]> git.ipfire.org Git - thirdparty/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>
Mon, 15 Nov 2021 12:22:21 +0000 (13:22 +0100)
commit087ec7c57003a9e93f88619cd11017320d63c282
tree0bb305ad4ecd5571b89873092822078501f76dc3
parent3c0a15515798c86c8e5cc2ef82ad493eef2574b9
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.
(cherry picked from commit c3339c853e3b35d896db68644ee7557fb725da18)
src/detect-file-data.c
src/detect-http-client-body.c