Merge in SNORT/snort3 from ~BRASTULT/snort3:http_param_delim to master
Squashed commit of the following:
commit
bc450cd810193622688ffd750c6feda501215f8d
Author: Brandon Stultz <brastult@cisco.com>
Date: Mon Nov 11 13:58:30 2024 -0500
http_inspect: remove semicolon http_param delimiter
bool HttpQueryParser::parse_value(Parameter& p)
{
- const uint8_t* amp;
- const uint8_t* semi;
const uint8_t* term;
if ( index >= buffer_len )
unsigned remaining = buffer_len - index;
// locate delimiter
- amp = (const uint8_t*)memchr(p.value, '&', remaining);
- semi = (const uint8_t*)memchr(p.value, ';', remaining);
-
- if ( amp && !semi )
- term = amp;
- else if ( !amp && semi )
- term = semi;
- else
- term = (amp < semi) ? amp : semi;
+ term = (const uint8_t*)memchr(p.value, '&', remaining);
if ( !term )
{