Merge in SNORT/snort3 from ~DKOLOMII/snort3:rpc_exception_handling to master
Squashed commit of the following:
commit
ffafe7bfa059888acb7b4d794ab7496dccdf9490
Author: Daniil Kolomiiets <dkolomii@cisco.com>
Date: Wed Jul 23 06:45:44 2025 -0400
appid: prevent out_of_range and invalid_argument in rpc
string tok;
while (getline(tokenizer, tok, '.'))
{
- if (!all_of(tok.begin(), tok.end(), ::isdigit))
+ if (!all_of(tok.begin(), tok.end(), ::isdigit) || tok.length() > 3 || tok.empty())
return false;
int tmp = stoi(tok);
if (tmp > 255)