Merge in SNORT/snort3 from ~VHORBAN/snort3:fix_segv_in_config_parser_lua to master
Squashed commit of the following:
commit
692843214a9428cd00ea99696dbfe755281f8a03
Author: Volodymyr Horban <vhorban@cisco.com>
Date: Mon Jan 31 15:05:04 2022 +0200
main: stop with error on include(nil) attempt
end
function include(file)
+ if ( file == nil ) then
+ error("include nil file", 2)
+ end
+
local cname = ffi.C.push_include_path(file)
local fname = ffi.string(cname);
path_push(fname)
const char* get_config_file(const char* arg, std::string& file)
{
+ assert(arg);
+
bool absolute = (arg[0] == '/');
if ( absolute )