[Bug 144325] [libpcap] tcpdump compiles complex expression to incorrect BPF code

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Oct 17 08:03:40 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=144325

--- Comment #5 from Archit Shah <archit.shah at gmail.com> ---
Created attachment 218833
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=218833&action=edit
Proposed patch

The bug appears to be in libpcap. The libpcap optimizer
(contrib/libpcap/optimizer.c) removes statements as dead that store certain
values but does not account for the fact that a successor block may attempt to
read the value written by the dead statemenent.  The proposed patch marks the
"val" data structure as having unknown value when statements are removed as
dead to indicate to successor blocks that the value is not available. (I will
also report this upstream.)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list