mirror of
https://github.com/nmap/nmap.git
synced 2026-01-22 14:19:02 +00:00
1d732258c8efd8c9cc155ce44c781a5f1e9e2e0a
estimating the worst-possible-case memory usage (the longest row length times the number of rows) to a more reasonable dynamic allocation of memory. Now the buffer is started at 512 bytes and approximately doubled each time it fills. 512 bytes is a compromise that was determined empirically. Most regular scans use less than 512 bytes. Scans with -sV and especially -sC tend to use a few k of memory. See http://seclists.org/nmap-dev/2009/q1/0782.html for the tests.
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%