mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Don't strdup (and fail to free) pattern passed to pcre_compile.
http://seclists.org/nmap-dev/2012/q2/627
This commit is contained in:
parent
7f0c9fa9a2
commit
86077ed05f
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ static int Lpcre_comp(lua_State *L)
|
|||
const char *error;
|
||||
int erroffset;
|
||||
pcre2 *ud;
|
||||
char *pattern = strdup(luaL_checkstring(L, 1));
|
||||
const char *pattern = luaL_checkstring(L, 1);
|
||||
int cflags = luaL_optint(L, 2, 0);
|
||||
const unsigned char *tables = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue