1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-05 22:19:03 +00:00

Fix crashes when assigning timeouts as floats. New NSE utility function nseU_checkinteger

This commit is contained in:
dmiller
2016-07-17 04:56:29 +00:00
parent 62c4985536
commit dbc26606ca
3 changed files with 22 additions and 4 deletions

View File

@@ -8,6 +8,12 @@ class Target;
#include <stdint.h>
#endif
/* int nseU_checkinteger (lua_State *L, int arg)
*
* Replacement for luaL_checkinteger that does a floor operation first
*/
int nseU_checkinteger (lua_State *L, int arg);
/* int nseU_traceback (lua_State *L)
*
* Traceback C Lua function.