Change #274699
| Category | libpcap |
| Changed by | Denis Ovsienko <denis@ovsienko.info> |
| Changed at | Sun 12 Jul 2026 19:51:19 |
| Repository | https://git.tcpdump.org/libpcap |
| Project | libpcap |
| Branch | master |
| Revision | f283b98e2292c1577cf6a436b1c3915ac01d9e1a |
Comments
Fix optimization of "jset #0xffffffff". This particular branch condition means "A is not zero", so replacing it with "always true" generates an incorrect filter program. This bug has been in place since commit cae0540 in 2001. Fix it, document the logic better and update the tests.
Changed files
- CHANGES
- optimize.c
- testprogs/TESTrun