Nmap Development mailing list archives

Re: [NSE] dns-brute - DNS brute-forcer


From: Patrick Donnelly <batrick () batbytes com>
Date: Mon, 7 Feb 2011 15:17:19 -0500

On Mon, Feb 7, 2011 at 1:30 PM, David Fifield <david () bamsoftware com> wrote:
I've only briefly looked over the code. What's with the 7900 magic
number here?

   if (howmany > 7900) then
       --Cannot unpack a list with more than 7900 items so we will set it to 7900
       stdnse.print_debug("Hostlist items per thread is more than 7900. Setting to 7900.")
       howmany = 7900
   end

Lua C functions are limited to a maximum stack size of 8000 (I
believe) in Lua 5.1. In Lua 5.2 this limit is increased to 1e6.

-- 
- Patrick Donnelly
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Current thread: