misje / dhcpoptinj

DHCP option injector
GNU General Public License v3.0
39 stars 15 forks source link

Fix "Syscall param […] points to uninitialised byte(s)" valgrind errors #5

Closed misje closed 8 years ago

misje commented 8 years ago

Initialising netfilter queue … ==22190== Syscall param socketcall.sendto(msg) points to uninitialised byte(s) ==22190== at 0x41338C1: sendto (socket.S:63) ==22190== by 0x4204739: nfnl_send (in /usr/lib/i386-linux-gnu/libnfnetlink.so.0.2.0) ==22190== by 0x420697B: nfnl_query (in /usr/lib/i386-linux-gnu/libnfnetlink.so.0.2.0) ==22190== by 0x40418AE: ??? (in /usr/lib/i386-linux-gnu/libnetfilter_queue.so.1.3.0) ==22190== by 0x4041C56: nfq_unbind_pf (in /usr/lib/i386-linux-gnu/libnetfilter_queue.so.1.3.0) ==22190== by 0x80492A1: main (in /home/andreas/dhcpoptinj/build/dhcpoptinj) ==22190== Address 0xbe9e04c9 is on thread 1's stack ==22190== ==22190== Syscall param socketcall.sendto(msg) points to uninitialised byte(s) ==22190== at 0x41338C1: sendto (socket.S:63) ==22190== by 0x4204739: nfnl_send (in /usr/lib/i386-linux-gnu/libnfnetlink.so.0.2.0) ==22190== by 0x420697B: nfnl_query (in /usr/lib/i386-linux-gnu/libnfnetlink.so.0.2.0) ==22190== by 0x4041EAC: nfq_set_mode (in /usr/lib/i386-linux-gnu/libnetfilter_queue.so.1.3.0) ==22190== by 0x80492F3: main (in /home/andreas/dhcpoptinj/build/dhcpoptinj) ==22190== Address 0xbe9e04e9 is on thread 1's stack ==22190== in frame #3, created by nfq_set_mode (???)

As far as I can tell, this looks like an issue in libnetfilter_queue.