mirror of
https://github.com/nmap/nmap.git
synced 2025-12-13 11:19:02 +00:00
Contrary to the doc comment, this function could never return false but only cause a fatal error. Resolves these Parfait reports (http://seclists.org/nmap-dev/2012/q4/412). Error: Null pointer dereference (CWE 476) Read from null pointer 'port' at line 344 of components/nmap/build/amd64/portlist.cc in function 'PortList::setServiceProbeResults(unsigned short, int, serviceprobestate, char const*, service_tunnel_type, char const*, char const*, char const*, char const*, char const*, char const*, std::vector<char const*, std::allocator<char const*> > const*, char const*)'. Function 'PortList::createPort(unsigned short, unsigned char)' may return constant 'NULL' at line 671, called at line 343. Null pointer introduced at line 671 in function 'PortList::createPort(unsigned short, unsigned char)'. Error: Null pointer dereference (CWE 476) Write to null pointer 'current' at line 520 of components/nmap/build/amd64/portlist.cc in function 'PortList::setPortState(unsigned short, unsigned char, int)'. Function 'PortList::createPort(unsigned short, unsigned char)' may return constant 'NULL' at line 671, called at line 518. Null pointer introduced at line 671 in function 'PortList::createPort(unsigned short, unsigned char)'. Error: Null pointer dereference (CWE 476) Write to null pointer 'answer' at line 880 of components/nmap/build/amd64/portlist.cc in function 'PortList::setStateReason(unsigned short, unsigned char, unsigned short, unsigned char, sockaddr_storage const*)'. Function 'PortList::createPort(unsigned short, unsigned char)' may return constant 'NULL' at line 671, called at line 877. Null pointer introduced at line 671 in function 'PortList::createPort(unsigned short, unsigned char)'. at line 885 of components/nmap/build/amd64/portlist.cc in function 'PortList::setStateReason(unsigned short, unsigned char, unsigned short, unsigned char, sockaddr_storage const*)'. Function 'PortList::createPort(unsigned short, unsigned char)' may return constant 'NULL' at line 671, called at line 877. Null pointer introduced at line 671 in function 'PortList::createPort(unsigned short, unsigned char)'.
31 KiB
31 KiB