kohler / click

The Click modular router: fast modular packet processing and analysis
Other
735 stars 322 forks source link

click/lexer: fix Compound::expand_into sanity check #414

Closed pallas closed 5 years ago

pallas commented 5 years ago

The check here appears to be intended to make sure that we only connect if both indexes are valid; specifically, idx can be -1. Unfortunately, it checks (cp)[0] twice. Instead, check (cp)[1] too.

Thanks, American Fuzzy Lop

Change-Id: I5cdeb45ac0cef5bbb0a18c6f19b4540df8007bfe

kohler commented 5 years ago

lexer-lol yayayayayyaya