Topic: suspected bug in sniffer application + suggested fix
Hey all,
I got a seg fault while working on the sniffer application. If I am not mistaking, in the "CreateBuffer" function in sniffer.c, the:
assert(begin <= end)
might be wrong... I believe I have encountered a packet (I went through the core file to check the values) which has a sequence number of about (2^32-11) and sslBytes for that packet was about 213... resulting that the packet ends "at" 202. I suggest to add:
if(added < 0){
added = (0xFFFFFFFFU - *begin) + end + 1
}
instead of asserting...
I will test and let you know if it worked. I suspect however this little change might cause other issues if not supported throughout the code...
let me know what you think,
regards,
DanC