1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +00:00

Applied Sebastian Dragomir's patch for the "Unbounded memory use" bug reported

by David Fifield http://seclists.org/nmap-dev/2011/q2/451
This commit is contained in:
patrik
2011-05-09 17:46:25 +00:00
parent 9d52d1290f
commit 19da29942c
7 changed files with 7 additions and 7 deletions

View File

@@ -177,7 +177,7 @@ Socket =
if ( #self.Buffer < count ) then
status, data = self.Socket:receive_bytes( count - #self.Buffer )
if ( not(status) ) then
if ( not(status) or #data < count - #self.Buffer ) then
return false, data
end
self.Buffer = self.Buffer .. data