Re: [tcpdump-workers] Bug in the BPF compiler optimizer

2011-12-09 Thread Gianluca Varenni
: [tcpdump-workers] Bug in the BPF compiler optimizer On Dec 6, 2011, at 5:47 PM, Gianluca Varenni wrote: > It looks like there is a bug in the optimizer of the BPF compiler, both in > 1.0 and trunk on git. If you try to compile the following filter, > pcap_compile goes into some endles

Re: [tcpdump-workers] Bug in the BPF compiler optimizer

2011-12-09 Thread Guy Harris
On Dec 6, 2011, at 5:47 PM, Gianluca Varenni wrote: > It looks like there is a bug in the optimizer of the BPF compiler, both in > 1.0 and trunk on git. If you try to compile the following filter, > pcap_compile goes into some endless loop in bpf_optimize and never exits. If > optimization is

[tcpdump-workers] Bug in the BPF compiler optimizer

2011-12-06 Thread Gianluca Varenni
Hi all, It looks like there is a bug in the optimizer of the BPF compiler, both in 1.0 and trunk on git. If you try to compile the following filter, pcap_compile goes into some endless loop in bpf_optimize and never exits. If optimization is disabled the filter is correctly compiled. ((ether[0