/* \brief Helper function for using pcre2_match with/without JIT
*/
-static inline int DetectPcreExec(DetectEngineThreadCtx *det_ctx, DetectPcreData *pd,
+static inline int DetectPcreExec(DetectEngineThreadCtx *det_ctx, const DetectPcreData *pd,
const char *str, const size_t strlen, int start_offset, int options,
pcre2_match_data *match)
{
uint32_t len = 0;
PCRE2_SIZE capture_len = 0;
- DetectPcreData *pe = (DetectPcreData *)smd->ctx;
+ const DetectPcreData *pe = (const DetectPcreData *)smd->ctx;
if (pe->flags & DETECT_PCRE_RELATIVE) {
ptr = payload + det_ctx->buffer_offset;