From: Philippe Antoine Date: Mon, 13 Sep 2021 10:27:51 +0000 (+0200) Subject: inspect: debug validation to ensure correct argument X-Git-Tag: suricata-7.0.0-beta1~1238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=689ac97d7225fd43b64c103034b1fdf63fa4d324;p=thirdparty%2Fsuricata.git inspect: debug validation to ensure correct argument --- diff --git a/src/detect-engine.c b/src/detect-engine.c index f76e3e22a3..a61d141695 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -1093,6 +1093,7 @@ void InspectionBufferSetup(DetectEngineThreadCtx *det_ctx, const int list_id, { #ifdef DEBUG_VALIDATION DEBUG_VALIDATE_BUG_ON(buffer->multi); + DEBUG_VALIDATE_BUG_ON(buffer != InspectionBufferGet(det_ctx, list_id)); #endif if (buffer->inspect == NULL) { #ifdef UNITTESTS