"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/wizard/hexes.cc" between
snort3-3.1.28.0.tar.gz and snort3-3.1.29.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.

hexes.cc  (snort3-3.1.28.0):hexes.cc  (snort3-3.1.29.0)
skipping to change at line 139 skipping to change at line 139
{ {
val = p->value; val = p->value;
return false; return false;
} }
add_spell(key, val, hv, i, p); add_spell(key, val, hv, i, p);
return true; return true;
} }
const MagicPage* HexBook::find_spell( const MagicPage* HexBook::find_spell(
const uint8_t* s, unsigned n, const MagicPage* p, unsigned i) const const uint8_t* s, unsigned n, const MagicPage* p, unsigned i, const MagicPag e*& bookmark) const
{ {
while ( i < n ) while ( i < n )
{ {
int c = s[i]; int c = s[i];
if ( p->next[c] ) if ( p->next[c] )
{ {
if ( p->any ) if ( p->any )
{ {
if ( const MagicPage* q = find_spell(s, n, p->next[c], i+1) ) if ( const MagicPage* q = find_spell(s, n, p->next[c], i+1, book mark) )
return q; return q;
} }
else else
{ {
p = p->next[c]; p = p->next[c];
++i; ++i;
continue; continue;
} }
} }
if ( p->any ) if ( p->any )
{ {
if ( const MagicPage* q = find_spell(s, n, p->any, i+1) ) if ( const MagicPage* q = find_spell(s, n, p->any, i+1, bookmark) )
return q; return q;
} }
return p->value ? p : nullptr; return p->value ? p : nullptr;
} }
return p; return p;
} }
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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