From fad24ba53e387a8bf8eb2ddd2febe6212462b410 Mon Sep 17 00:00:00 2001 From: d33tah Date: Wed, 4 Sep 2013 15:40:47 +0000 Subject: [PATCH] Fix a typo. --- ncat/scripts/conditional.lua | 2 +- ncat/scripts/httpd.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ncat/scripts/conditional.lua b/ncat/scripts/conditional.lua index 17899fe16..76817b27b 100644 --- a/ncat/scripts/conditional.lua +++ b/ncat/scripts/conditional.lua @@ -5,7 +5,7 @@ --This function reads a line of at most 8096 bytes (or whatever the first --parameter says) from standard input. Returns the string and a boolean value --that is true if we hit the newline (defined as "\n") or false if the line had ---to be truncated. This is here because io.stdin:read("*line") could read to +--to be truncated. This is here because io.stdin:read("*line") could lead to --memory exhaustion if we received gigabytes of characters with no newline. function read_line(max_len) local ret = "" diff --git a/ncat/scripts/httpd.lua b/ncat/scripts/httpd.lua index 1bf2a52e2..63af869e4 100644 --- a/ncat/scripts/httpd.lua +++ b/ncat/scripts/httpd.lua @@ -41,7 +41,7 @@ end --Read a line of at most 8096 bytes (or whatever the first parameter says) --from standard input. Returns the string and a boolean value that is true if --we hit the newline (defined as "\n") or false if the line had to be ---truncated. This is here because io.stdin:read("*line") could read to memory +--truncated. This is here because io.stdin:read("*line") could lead to memory --exhaustion if we received gigabytes of characters with no newline. function read_line(max_len) local ret = ""