[tcpdump-workers] [libpcap] Uninitialized scalar variable

2015-01-27 Thread PEUGNEZ Baptiste
Hello, I do computer security studies and I wanted to test Coverity, a source code analysis tool. If you're interested, I corrected a problem in /pcap-linux.c/ file: uninitialized variable (/req.tp_frame_size/). You will find above the Github commit. https://github.com/peugnezb/libpcap/commi

Re: [tcpdump-workers] ND_TTEST2 --- can l be negative

2015-03-10 Thread PEUGNEZ Baptiste
It's funny, I have finished working on this issue yesterday. I detected with a fuzzer. I fixed it like this: #define ND_TTEST2(var, l) ((uintptr_t)(ndo->ndo_snapend >= (l) && \ (const u_char *)&(var) <= ndo->ndo_snapend - (l)) With a debug function in the file "print-snm