Merge in SNORT/snort3 from ~OSERHIIE/snort3:js_inline_scripts to master
Squashed commit of the following:
commit
f8e2c07bc730f705941d659fb8eb2e70c8e4c00d
Author: Oleksandr Serhiienko <oserhiie@cisco.com>
Date: Thu Jun 2 15:28:06 2022 +0300
http_inspect: add explicit check for HTML script opening tag ending
ptr++;
else
{
- if (!mpse_attr->find(ptr, end - ptr, match_attr, false, &sctx))
+ if (!mpse_attr->find(ptr, end - ptr, match_attr, false, &sctx) || ptr == sctx.next)
break; // the opening tag never ends
ptr = sctx.next;
}
return 0;
default:
+ assert(false);
ctx->is_external = false;
ctx->is_javascript = false;
- ctx->next += index;
return 1;
}
}