xpcap icon indicating copy to clipboard operation
xpcap copied to clipboard

Raw socket buffer allocation using uninitialized field

Open kilinitt opened this issue 5 years ago • 0 comments

Raw socket buffer allocation is done based on sniffer->buf_len, which is not initialized:

Line 143 in sniffer.c:

sniffer->buffer = malloc(sizeof(char) * sniffer->buf_len);

kilinitt avatar Oct 08 '19 21:10 kilinitt