1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-09 07:59:03 +00:00
luis faaca263b9 When using pcap_set_filter() on Linux, valgrind complains about a
setsockopt() call that uses a pointer to some uninitialized memory. The
error message is the following:

==22214== Syscall param socketcall.setsockopt(optval) points to
uninitialised byte(s)
==22214==    at 0x62F774A: setsockopt (syscall-template.S:82)
==22214==    by 0x4E33B85: ??? (in /usr/lib/libpcap.so.1.0.0)
==22214==    by 0x4E33D0D: ??? (in /usr/lib/libpcap.so.1.0.0)
==22214==    by 0x432253: nsock_pcap_set_filter (in /usr/local/bin/nping)
==22214==    by 0x432557: nsock_pcap_open (in /usr/local/bin/nping)
==22214==    by 0x4295FF: ProbeMode::start() (in /usr/local/bin/nping)
==22214==    by 0x40B2E1: main (in /usr/local/bin/nping)

This patch adds a simple memset() call that makes the warning dissapear.
2010-09-22 09:41:06 +00:00
2010-06-09 17:20:50 +00:00
2010-09-21 17:31:17 +00:00
2010-09-22 00:03:42 +00:00
2010-09-21 02:03:44 +00:00
2010-05-23 17:42:44 +00:00
2010-07-13 07:42:15 +00:00
2008-07-31 14:18:21 +00:00
2010-09-20 19:47:08 +00:00
2010-09-20 19:47:08 +00:00
2010-09-13 23:28:15 +00:00
2010-08-24 01:47:12 +00:00
2010-06-15 18:02:05 +00:00
2010-08-24 01:47:12 +00:00
2010-08-24 01:47:12 +00:00
2010-09-10 21:45:44 +00:00
2010-05-03 21:20:25 +00:00
2010-05-03 21:20:25 +00:00

Here is some documentation for Nmap, but these files are much less
comprehensive than what you'll find at the actual Nmap documentation
site ( http://nmap.org ).
Languages
C 37.8%
Lua 28.1%
C++ 16.7%
Shell 5.8%
Python 4.2%
Other 7.2%