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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user