detect/pcre: add needed casts

pull/13432/head
Eric Leblond 10 months ago committed by Victor Julien
parent f747a3a001
commit 639eb70dda

@ -176,7 +176,7 @@ static void DetectAlertStoreMatch(DetectEngineThreadCtx *det_ctx, const Signatur
return;
}
SCJbSetStringFromBytes(js, json_key, str_ptr, capture_len);
uint32_t js_len = SCJbLen(js);
uint32_t js_len = (uint32_t)SCJbLen(js);
if (js_len > SIG_JSON_CONTENT_ITEM_LEN) {
SCLogDebug("Captured length is too long for JSON.");
SCFree(str_ptr);
@ -437,7 +437,7 @@ static DetectPcreData *DetectPcreParse (DetectEngineCtx *de_ctx,
}
if (acap) {
if (a_set)
cut_capture = MIN(cut_capture, (acap - regexstr));
cut_capture = MIN(cut_capture, (int)(acap - regexstr));
else
cut_capture = (int)(acap - regexstr);
}

Loading…
Cancel
Save