1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-28 17:19:05 +00:00
david aaaed61c52 Improve the efficiency of xml_convert. The old version was wasteful of space;
it started by allocating six times the size of the input string because in the
worst case each byte can take up to six bytes when escaped (&#xXX;). It was
wasteful of time because it built the string up with strncat, which pads the
entire destination buffer with null bytes every time it was called. This led to
quadratic time complexity, not linear as expected.

The new version uses the usual strategy of doubling the size of the buffer
whenever it runs out of space. It builds up the string using memcpy, checking
each time that there is space for the new copy.
2009-02-08 05:28:38 +00:00
2009-02-07 21:19:57 +00:00
2009-02-03 02:29:19 +00:00
2008-07-31 14:18:21 +00:00
2008-05-31 02:39:27 +00:00
2008-05-31 02:39:27 +00:00
2008-09-03 22:16:59 +00:00
2008-12-21 22:49:39 +00:00
2008-12-21 22:46:22 +00:00
2008-07-15 20:06:05 +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.5%
Lua 28.1%
C++ 16.8%
Shell 5.8%
Python 4.2%
Other 7.3%