"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http_inspect/http_js_norm.cc" between
snort3-3.1.31.0.tar.gz and snort3-3.1.32.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

http_js_norm.cc  (snort3-3.1.31.0):http_js_norm.cc  (snort3-3.1.32.0)
skipping to change at line 271 skipping to change at line 271
break; break;
if (ptr >= end) if (ptr >= end)
break; break;
MatchContext sctx = {ptr, true, false, false}; MatchContext sctx = {ptr, true, false, false};
if (ptr[0] == '>') if (ptr[0] == '>')
ptr++; ptr++;
else 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 break; // the opening tag never ends
ptr = sctx.next; ptr = sctx.next;
} }
trace_logf(1, http_trace, TRACE_JS_PROC, current_packet, trace_logf(1, http_trace, TRACE_JS_PROC, current_packet,
"opening tag at %zd offset\n", ptr - (const char*)input.start()) ; "opening tag at %zd offset\n", ptr - (const char*)input.start()) ;
trace_logf(2, http_trace, TRACE_JS_PROC, current_packet, trace_logf(2, http_trace, TRACE_JS_PROC, current_packet,
"script attributes [%s, %s, %s]\n", "script attributes [%s, %s, %s]\n",
sctx.is_shortened ? "shortened form" : "full form", sctx.is_shortened ? "shortened form" : "full form",
skipping to change at line 573 skipping to change at line 573
case AID_ECMA: case AID_ECMA:
ctx->is_javascript = true; ctx->is_javascript = true;
return 0; return 0;
case AID_VB: case AID_VB:
ctx->is_javascript = false; ctx->is_javascript = false;
return 0; return 0;
default: default:
assert(false);
ctx->is_external = false; ctx->is_external = false;
ctx->is_javascript = false; ctx->is_javascript = false;
ctx->next += index;
return 1; return 1;
} }
} }
 End of changes. 3 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)