mirror of
https://github.com/nmap/nmap.git
synced 2026-01-27 16:49:01 +00:00
c6ca94dc430f7f3cffb73ab64ba0c4f42612ce78
When a DNS name was only "."; i.e., the first byte in its encoded representation was 0, encoded_name_to_normal wouldn't null-terminate the string. This caused multiple warnings Illegal character(s) in hostname -- replacing with '*' as later code read from uninitialized memory. Now we null-terminate whenever the function returns success, and treat "." as a special case for which we retain the trailing dot. This bug was found by Gisle Vanem, who wrote a patch to fix it. I added some more error checking to the patch.
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 ).
Description
Languages
C
37.8%
Lua
28.1%
C++
16.7%
Shell
5.8%
Python
4.2%
Other
7.1%