1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Handle NSE-returned strings with null characters

This was resulting in truncated normal output. To reproduce, run a
script that returns "test\0will not appear".
This commit is contained in:
dmiller
2012-08-17 20:14:44 +00:00
parent acea14865e
commit d59f85371c
2 changed files with 20 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ class ScriptResult
void clear (void);
void set_output_tab (lua_State *, int);
void set_output_str (const char *);
void set_output_str (const char *, size_t);
std::string get_output_str (void) const;
void set_id (const char *);
const char *get_id (void) const;