From: Hong, Yang A Date: Thu, 28 Jul 2022 04:59:34 +0000 (+0000) Subject: chimera: fix SKIP flag issue X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef3ca02ce4e5c54c230eb13df7bdff60a8e48928;p=thirdparty%2Fvectorscan.git chimera: fix SKIP flag issue fix github issue #360 --- diff --git a/chimera/ch_runtime.c b/chimera/ch_runtime.c index fdb5b992..1009036b 100644 --- a/chimera/ch_runtime.c +++ b/chimera/ch_runtime.c @@ -326,6 +326,10 @@ ch_error_t catchupPcre(struct HybridContext *hyctx, unsigned int id, } else if (cbrv == CH_CALLBACK_SKIP_PATTERN) { DEBUG_PRINTF("user callback told us to skip this pattern\n"); pd->scanStart = hyctx->length; + if (top_id == id) { + break; + } + continue; } if (top_id == id) {