[tcpdump-workers] Question about an uninitialized array in bpf_filter

2024-04-29 Thread Michal Ruprich
Hi, I was wondering, whether the mem[BPF_MEMWORDS] array in function pcapint_filter_with_aux_data in bpf_filter.c should be initialized? If the switch hits cases BPF_LD|BPF_MEM or BPF_LDX|BPF_MEM the variables A or X are filled with random uninitialized data from the array. Is it the case tha

[tcpdump-workers] Re: Question about an uninitialized array in bpf_filter

2024-04-29 Thread Guy Harris
On Apr 29, 2024, at 7:19 AM, Michal Ruprich wrote: > I was wondering, whether the mem[BPF_MEMWORDS] array in function > pcapint_filter_with_aux_data in bpf_filter.c should be initialized? If the > switch hits cases BPF_LD|BPF_MEM or BPF_LDX|BPF_MEM the variables A or X are > filled with random