Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Oct 2020 08:03:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 144325] [libpcap] tcpdump compiles complex expression to incorrect BPF code
Message-ID:  <bug-144325-227-86FiGBoFB2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-144325-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-144325-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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

--- Comment #5 from Archit Shah <archit.shah@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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-144325-227-86FiGBoFB2>