idx
int64
func_before
string
Vulnerability Classification
string
vul
int64
func_after
string
patch
string
CWE ID
string
lines_before
string
lines_after
string
36,100
void ap_lua_push_server(lua_State *L, server_rec *s) { lua_boxpointer(L, s); luaL_getmetatable(L, "Apache2.Server"); lua_setmetatable(L, -2); luaL_getmetatable(L, "Apache2.Server"); lua_pushstring(L, s->server_hostname); lua_setfield(L, -2, "server_hostname"); lua_pop(L, 1); }
DoS
0
void ap_lua_push_server(lua_State *L, server_rec *s) { lua_boxpointer(L, s); luaL_getmetatable(L, "Apache2.Server"); lua_setmetatable(L, -2); luaL_getmetatable(L, "Apache2.Server"); lua_pushstring(L, s->server_hostname); lua_setfield(L, -2, "server_hostname"); lua_pop(L, 1); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,101
void ap_lua_rstack_dump(lua_State *L, request_rec *r, const char *msg) { int i; int top = lua_gettop(L); ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(01484) "Lua Stack Dump: [%s]", msg); for (i = 1; i <= top; i++) { int t = lua_type(L, i); switch (t) { case LUA_TSTRING:{ ...
DoS
0
void ap_lua_rstack_dump(lua_State *L, request_rec *r, const char *msg) { int i; int top = lua_gettop(L); ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(01484) "Lua Stack Dump: [%s]", msg); for (i = 1; i <= top; i++) { int t = lua_type(L, i); switch (t) { case LUA_TSTRING:{ ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,102
static apr_uint64_t ap_ntoh64(const apr_uint64_t *input) { apr_uint64_t rval; unsigned char *data = (unsigned char *)&rval; if (APR_IS_BIGENDIAN) { return *input; } data[0] = *input >> 56; data[1] = *input >> 48; data[2] = *input >> 40; data[3] = *input >> 32; data[4] = ...
DoS
0
static apr_uint64_t ap_ntoh64(const apr_uint64_t *input) { apr_uint64_t rval; unsigned char *data = (unsigned char *)&rval; if (APR_IS_BIGENDIAN) { return *input; } data[0] = *input >> 56; data[1] = *input >> 48; data[2] = *input >> 40; data[3] = *input >> 32; data[4] = ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,103
static int lua_ap_add_input_filter(lua_State *L) { request_rec *r; const char *filterName; ap_filter_rec_t *filter; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); filterName = lua_tostring(L, 2); filter = ap_get_input_f...
DoS
0
static int lua_ap_add_input_filter(lua_State *L) { request_rec *r; const char *filterName; ap_filter_rec_t *filter; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); filterName = lua_tostring(L, 2); filter = ap_get_input_f...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,104
static const char* lua_ap_allowoverrides(request_rec* r) { int opts; opts = ap_allow_overrides(r); if ( (opts & OR_ALL) == OR_ALL) { return "All"; } else if (opts == OR_NONE) { return "None"; } return apr_psprintf(r->pool, "%s %s %s %s %s", (opts & OR_LIMIT) ? "Limit" : "", ...
DoS
0
static const char* lua_ap_allowoverrides(request_rec* r) { int opts; opts = ap_allow_overrides(r); if ( (opts & OR_ALL) == OR_ALL) { return "All"; } else if (opts == OR_NONE) { return "None"; } return apr_psprintf(r->pool, "%s %s %s %s %s", (opts & OR_LIMIT) ? "Limit" : "", ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,105
static const char* lua_ap_auth_name(request_rec* r) { const char *name; name = ap_auth_name(r); return name ? name : ""; }
DoS
0
static const char* lua_ap_auth_name(request_rec* r) { const char *name; name = ap_auth_name(r); return name ? name : ""; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,106
static const char* lua_ap_basic_auth_pw(request_rec* r) { const char* pw = NULL; ap_get_basic_auth_pw(r, &pw); return pw ? pw : ""; }
DoS
0
static const char* lua_ap_basic_auth_pw(request_rec* r) { const char* pw = NULL; ap_get_basic_auth_pw(r, &pw); return pw ? pw : ""; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,107
static int lua_ap_clock(lua_State *L) { apr_time_t now; now = apr_time_now(); lua_pushnumber(L, (lua_Number) now); return 1; }
DoS
0
static int lua_ap_clock(lua_State *L) { apr_time_t now; now = apr_time_now(); lua_pushnumber(L, (lua_Number) now); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,108
static int lua_ap_custom_response(lua_State *L) { request_rec *r; int status; const char *string; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TNUMBER); status = lua_tointeger(L, 2); luaL_checktype(L, 3, LUA_TSTRING); string...
DoS
0
static int lua_ap_custom_response(lua_State *L) { request_rec *r; int status; const char *string; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TNUMBER); status = lua_tointeger(L, 2); luaL_checktype(L, 3, LUA_TSTRING); string...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,109
static int lua_ap_escape(lua_State *L) { const char *plain; char *escaped; size_t x; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); plain = lua_tolstring(L, 2, &x); escaped = ap_escape_urlencoded(r->pool, plain); lua_pushstring...
DoS
0
static int lua_ap_escape(lua_State *L) { const char *plain; char *escaped; size_t x; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); plain = lua_tolstring(L, 2, &x); escaped = ap_escape_urlencoded(r->pool, plain); lua_pushstring...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,110
static int lua_ap_escape_logitem(lua_State *L) { char *returnValue; request_rec *r; const char *str; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); str = lua_tostring(L, 2); returnValue = ap_escape_logitem(r->p...
DoS
0
static int lua_ap_escape_logitem(lua_State *L) { char *returnValue; request_rec *r; const char *str; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); str = lua_tostring(L, 2); returnValue = ap_escape_logitem(r->p...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,111
static int lua_ap_exists_config_define(lua_State *L) { int returnValue; const char *name; luaL_checktype(L, 1, LUA_TSTRING); name = lua_tostring(L, 1); returnValue = ap_exists_config_define(name); lua_pushboolean(L, returnValue); return 1; }
DoS
0
static int lua_ap_exists_config_define(lua_State *L) { int returnValue; const char *name; luaL_checktype(L, 1, LUA_TSTRING); name = lua_tostring(L, 1); returnValue = ap_exists_config_define(name); lua_pushboolean(L, returnValue); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,112
static int lua_ap_expr(lua_State *L) { request_rec *r; int x = 0; const char *expr, *err; ap_expr_info_t res; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); expr = lua_tostring(L, 2); res.filename = NULL; ...
DoS
0
static int lua_ap_expr(lua_State *L) { request_rec *r; int x = 0; const char *expr, *err; ap_expr_info_t res; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); expr = lua_tostring(L, 2); res.filename = NULL; ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,113
static int lua_ap_get_active_config(lua_State *L) { ap_directive_t *subdir; ap_directive_t *dir = ap_conftree; request_rec *r = ap_lua_check_request_rec(L, 1); for (dir = ap_conftree; dir; dir = dir->next) { if (ap_strcasestr(dir->directive, "<virtualhost") && dir->first_child) { ...
DoS
0
static int lua_ap_get_active_config(lua_State *L) { ap_directive_t *subdir; ap_directive_t *dir = ap_conftree; request_rec *r = ap_lua_check_request_rec(L, 1); for (dir = ap_conftree; dir; dir = dir->next) { if (ap_strcasestr(dir->directive, "<virtualhost") && dir->first_child) { ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,114
static int lua_ap_get_config(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); read_cfg_tree(L, r, ap_conftree); return 1; }
DoS
0
static int lua_ap_get_config(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); read_cfg_tree(L, r, ap_conftree); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,115
static const char* lua_ap_get_server_name(request_rec* r) { const char *name; name = ap_get_server_name(r); return name ? name : "localhost"; }
DoS
0
static const char* lua_ap_get_server_name(request_rec* r) { const char *name; name = ap_get_server_name(r); return name ? name : "localhost"; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,116
static int lua_ap_getdir(lua_State *L) { request_rec *r; apr_dir_t *thedir; apr_finfo_t file_info; apr_status_t status; const char *directory; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); directory = lua...
DoS
0
static int lua_ap_getdir(lua_State *L) { request_rec *r; apr_dir_t *thedir; apr_finfo_t file_info; apr_status_t status; const char *directory; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); directory = lua...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,117
static int lua_ap_is_initial_req(request_rec *r) { return ap_is_initial_req(r); }
DoS
0
static int lua_ap_is_initial_req(request_rec *r) { return ap_is_initial_req(r); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,118
static int lua_ap_limit_req_body(request_rec* r) { return (int) ap_get_limit_req_body(r); }
DoS
0
static int lua_ap_limit_req_body(request_rec* r) { return (int) ap_get_limit_req_body(r); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,119
static int lua_ap_make_etag(lua_State *L) { char *returnValue; request_rec *r; int force_weak; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TBOOLEAN); force_weak = luaL_optint(L, 2, 0); returnValue = ap_make_etag(r, force_...
DoS
0
static int lua_ap_make_etag(lua_State *L) { char *returnValue; request_rec *r; int force_weak; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TBOOLEAN); force_weak = luaL_optint(L, 2, 0); returnValue = ap_make_etag(r, force_...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,120
static int lua_ap_module_info(lua_State *L) { const char *moduleName; module *mod; luaL_checktype(L, 1, LUA_TSTRING); moduleName = lua_tostring(L, 1); mod = ap_find_linked_module(moduleName); if (mod && mod->cmds) { const command_rec *cmd; lua_newtable(L); lu...
DoS
0
static int lua_ap_module_info(lua_State *L) { const char *moduleName; module *mod; luaL_checktype(L, 1, LUA_TSTRING); moduleName = lua_tostring(L, 1); mod = ap_find_linked_module(moduleName); if (mod && mod->cmds) { const command_rec *cmd; lua_newtable(L); lu...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,121
static int lua_ap_mpm_query(lua_State *L) { int x, y; x = lua_tointeger(L, 1); ap_mpm_query(x, &y); lua_pushinteger(L, y); return 1; }
DoS
0
static int lua_ap_mpm_query(lua_State *L) { int x, y; x = lua_tointeger(L, 1); ap_mpm_query(x, &y); lua_pushinteger(L, y); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,122
static const char* lua_ap_options(request_rec* r) { int opts; opts = ap_allow_options(r); return apr_psprintf(r->pool, "%s %s %s %s %s %s", (opts&OPT_INDEXES) ? "Indexes" : "", (opts&OPT_INCLUDES) ? "Includes" : "", (opts&OPT_SYM_LINKS) ? "FollowSymLinks" : "", (opts&OPT_EXECCGI) ? "ExecCGI" : "", (opts&OP...
DoS
0
static const char* lua_ap_options(request_rec* r) { int opts; opts = ap_allow_options(r); return apr_psprintf(r->pool, "%s %s %s %s %s %s", (opts&OPT_INDEXES) ? "Indexes" : "", (opts&OPT_INCLUDES) ? "Includes" : "", (opts&OPT_SYM_LINKS) ? "FollowSymLinks" : "", (opts&OPT_EXECCGI) ? "ExecCGI" : "", (opts&OP...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,123
static int lua_ap_os_escape_path(lua_State *L) { char *returnValue; request_rec *r; const char *path; int partial = 0; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); path = lua_tostring(L, 2); if (lua_isboo...
DoS
0
static int lua_ap_os_escape_path(lua_State *L) { char *returnValue; request_rec *r; const char *path; int partial = 0; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); path = lua_tostring(L, 2); if (lua_isboo...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,124
static int lua_ap_regex(lua_State *L) { request_rec *r; int i, rv, flags; const char *pattern, *source; char *err; ap_regex_t regex; ap_regmatch_t matches[MODLUA_MAX_REG_MATCH+1]; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING)...
DoS
0
static int lua_ap_regex(lua_State *L) { request_rec *r; int i, rv, flags; const char *pattern, *source; char *err; ap_regex_t regex; ap_regmatch_t matches[MODLUA_MAX_REG_MATCH+1]; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING)...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,125
static int lua_ap_requestbody(lua_State *L) { const char *filename; request_rec *r; apr_off_t maxSize; r = ap_lua_check_request_rec(L, 1); filename = luaL_optstring(L, 2, 0); maxSize = luaL_optint(L, 3, 0); if (r) { apr_off_t size; if (maxSize > 0 && r->rema...
DoS
0
static int lua_ap_requestbody(lua_State *L) { const char *filename; request_rec *r; apr_off_t maxSize; r = ap_lua_check_request_rec(L, 1); filename = luaL_optstring(L, 2, 0); maxSize = luaL_optint(L, 3, 0); if (r) { apr_off_t size; if (maxSize > 0 && r->rema...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,126
static int lua_ap_rflush (lua_State *L) { int returnValue; request_rec *r; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); returnValue = ap_rflush(r); lua_pushboolean(L, (returnValue == 0)); return 1; }
DoS
0
static int lua_ap_rflush (lua_State *L) { int returnValue; request_rec *r; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); returnValue = ap_rflush(r); lua_pushboolean(L, (returnValue == 0)); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,127
static int lua_ap_scoreboard_worker(lua_State *L) { int i, j; worker_score *ws_record = NULL; request_rec *r = NULL; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TNUMBER); luaL_checktype(L, 3, LUA_TNUMBER); r = ap_lua_check_request_rec(L, 1); if (!r) return 0; i =...
DoS
0
static int lua_ap_scoreboard_worker(lua_State *L) { int i, j; worker_score *ws_record = NULL; request_rec *r = NULL; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TNUMBER); luaL_checktype(L, 3, LUA_TNUMBER); r = ap_lua_check_request_rec(L, 1); if (!r) return 0; i =...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,128
static int lua_ap_send_interim_response(lua_State *L) { request_rec *r; int send_headers = 0; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); if (lua_isboolean(L, 2)) send_headers = lua_toboolean(L, 2); ap_send_interim_response(r, send_headers); return 0; ...
DoS
0
static int lua_ap_send_interim_response(lua_State *L) { request_rec *r; int send_headers = 0; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); if (lua_isboolean(L, 2)) send_headers = lua_toboolean(L, 2); ap_send_interim_response(r, send_headers); return 0; ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,129
static int lua_ap_sendfile(lua_State *L) { apr_finfo_t file_info; const char *filename; request_rec *r; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); filename = lua_tostring(L, 2); apr_stat(&file_info, filename, APR_FINFO_M...
DoS
0
static int lua_ap_sendfile(lua_State *L) { apr_finfo_t file_info; const char *filename; request_rec *r; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); filename = lua_tostring(L, 2); apr_stat(&file_info, filename, APR_FINFO_M...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,130
static int lua_ap_server_info(lua_State *L) { lua_newtable(L); lua_pushstring(L, "server_executable"); lua_pushstring(L, ap_server_argv0); lua_settable(L, -3); lua_pushstring(L, "server_root"); lua_pushstring(L, ap_server_root); lua_settable(L, -3); lua_pushstring(L, "scoreboard_fname...
DoS
0
static int lua_ap_server_info(lua_State *L) { lua_newtable(L); lua_pushstring(L, "server_executable"); lua_pushstring(L, ap_server_argv0); lua_settable(L, -3); lua_pushstring(L, "server_root"); lua_pushstring(L, ap_server_root); lua_settable(L, -3); lua_pushstring(L, "scoreboard_fname...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,131
static int lua_ap_set_context_info(lua_State *L) { request_rec *r; const char *prefix; const char *document_root; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); prefix = lua_tostring(L, 2); luaL_checktype(L, 3, LUA_T...
DoS
0
static int lua_ap_set_context_info(lua_State *L) { request_rec *r; const char *prefix; const char *document_root; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); prefix = lua_tostring(L, 2); luaL_checktype(L, 3, LUA_T...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,132
static int lua_ap_set_document_root(lua_State *L) { request_rec *r; const char *root; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); root = lua_tostring(L, 2); ap_set_document_root(r, root); return 0; }
DoS
0
static int lua_ap_set_document_root(lua_State *L) { request_rec *r; const char *root; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); root = lua_tostring(L, 2); ap_set_document_root(r, root); return 0; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,133
static int lua_ap_set_keepalive(lua_State *L) { int returnValue; request_rec *r; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); returnValue = ap_set_keepalive(r); lua_pushboolean(L, returnValue); return 1; }
DoS
0
static int lua_ap_set_keepalive(lua_State *L) { int returnValue; request_rec *r; luaL_checktype(L, 1, LUA_TUSERDATA); r = ap_lua_check_request_rec(L, 1); returnValue = ap_set_keepalive(r); lua_pushboolean(L, returnValue); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,134
static int lua_ap_started(request_rec* r) { return (int)(ap_scoreboard_image->global->restart_time / 1000000); }
DoS
0
static int lua_ap_started(request_rec* r) { return (int)(ap_scoreboard_image->global->restart_time / 1000000); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,135
static int lua_ap_stat(lua_State *L) { request_rec *r; const char *filename; apr_finfo_t file_info; apr_int32_t wanted; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); filename = lua_tostring(L, 2); wanted = luaL_opt...
DoS
0
static int lua_ap_stat(lua_State *L) { request_rec *r; const char *filename; apr_finfo_t file_info; apr_int32_t wanted; luaL_checktype(L, 1, LUA_TUSERDATA); luaL_checktype(L, 2, LUA_TSTRING); r = ap_lua_check_request_rec(L, 1); filename = lua_tostring(L, 2); wanted = luaL_opt...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,136
static int lua_ap_state_query(lua_State *L) { int returnValue; int query_code; luaL_checktype(L, 1, LUA_TNUMBER); query_code = lua_tointeger(L, 1); returnValue = ap_state_query(query_code); lua_pushinteger(L, returnValue); return 1; }
DoS
0
static int lua_ap_state_query(lua_State *L) { int returnValue; int query_code; luaL_checktype(L, 1, LUA_TNUMBER); query_code = lua_tointeger(L, 1); returnValue = ap_state_query(query_code); lua_pushinteger(L, returnValue); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,137
static int lua_ap_strcmp_match(lua_State *L) { int returnValue; const char *str; const char *expected; int ignoreCase = 0; luaL_checktype(L, 1, LUA_TSTRING); str = lua_tostring(L, 1); luaL_checktype(L, 2, LUA_TSTRING); expected = lua_tostring(L, 2); if (lua_isboolean(L, 3)) ...
DoS
0
static int lua_ap_strcmp_match(lua_State *L) { int returnValue; const char *str; const char *expected; int ignoreCase = 0; luaL_checktype(L, 1, LUA_TSTRING); str = lua_tostring(L, 1); luaL_checktype(L, 2, LUA_TSTRING); expected = lua_tostring(L, 2); if (lua_isboolean(L, 3)) ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,138
static int lua_ap_unescape(lua_State *L) { const char *escaped; char *plain; size_t x, y; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); escaped = lua_tolstring(L, 2, &x); plain = apr_pstrdup(r->pool, escaped); y = a...
DoS
0
static int lua_ap_unescape(lua_State *L) { const char *escaped; char *plain; size_t x, y; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); escaped = lua_tolstring(L, 2, &x); plain = apr_pstrdup(r->pool, escaped); y = a...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,139
static int lua_ap_usleep(lua_State *L) { apr_interval_time_t msec; luaL_checktype(L, 1, LUA_TNUMBER); msec = (apr_interval_time_t)lua_tonumber(L, 1); apr_sleep(msec); return 0; }
DoS
0
static int lua_ap_usleep(lua_State *L) { apr_interval_time_t msec; luaL_checktype(L, 1, LUA_TNUMBER); msec = (apr_interval_time_t)lua_tonumber(L, 1); apr_sleep(msec); return 0; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,140
static int lua_apr_b64decode(lua_State *L) { const char *encoded; char *plain; size_t encoded_len, decoded_len; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); encoded = lua_tolstring(L, 2, &encoded_len); decoded_len = apr...
DoS
0
static int lua_apr_b64decode(lua_State *L) { const char *encoded; char *plain; size_t encoded_len, decoded_len; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); encoded = lua_tolstring(L, 2, &encoded_len); decoded_len = apr...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,141
static int lua_apr_md5(lua_State *L) { const char *buffer; char *result; size_t len; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); buffer = lua_tolstring(L, 2, &len); result = ap_md5_binary(r->pool, (const unsigned char *)buffer,...
DoS
0
static int lua_apr_md5(lua_State *L) { const char *buffer; char *result; size_t len; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); buffer = lua_tolstring(L, 2, &len); result = ap_md5_binary(r->pool, (const unsigned char *)buffer,...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,142
static int lua_apr_mkrdir(lua_State *L) { request_rec *r; const char *path; apr_status_t status; apr_fileperms_t perms; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); path = lua_tostring(L, 2); perms = luaL_optinteger(L, 3, APR_OS_DEFAULT); status...
DoS
0
static int lua_apr_mkrdir(lua_State *L) { request_rec *r; const char *path; apr_status_t status; apr_fileperms_t perms; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); path = lua_tostring(L, 2); perms = luaL_optinteger(L, 3, APR_OS_DEFAULT); status...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,143
static int lua_apr_rmdir(lua_State *L) { request_rec *r; const char *path; apr_status_t status; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); path = lua_tostring(L, 2); status = apr_dir_remove(path, r->pool); lua_pushboolean(L, (status == 0)); re...
DoS
0
static int lua_apr_rmdir(lua_State *L) { request_rec *r; const char *path; apr_status_t status; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); path = lua_tostring(L, 2); status = apr_dir_remove(path, r->pool); lua_pushboolean(L, (status == 0)); re...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,144
static int lua_apr_sha1(lua_State *L) { unsigned char digest[APR_SHA1_DIGESTSIZE]; apr_sha1_ctx_t sha1; const char *buffer; char *result; size_t len; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); result = apr_pcalloc(r->pool,...
DoS
0
static int lua_apr_sha1(lua_State *L) { unsigned char digest[APR_SHA1_DIGESTSIZE]; apr_sha1_ctx_t sha1; const char *buffer; char *result; size_t len; request_rec *r; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); result = apr_pcalloc(r->pool,...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,145
static int lua_apr_touch(lua_State *L) { request_rec *r; const char *path; apr_status_t status; apr_time_t mtime; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); path = lua_tostring(L, 2); mtime = (apr_time_t)luaL_optnumber(L, 3, (lua_Number)apr_t...
DoS
0
static int lua_apr_touch(lua_State *L) { request_rec *r; const char *path; apr_status_t status; apr_time_t mtime; r = ap_lua_check_request_rec(L, 1); luaL_checktype(L, 2, LUA_TSTRING); path = lua_tostring(L, 2); mtime = (apr_time_t)luaL_optnumber(L, 3, (lua_Number)apr_t...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,146
static int lua_get_cookie(lua_State *L) { const char *key, *cookie; request_rec *r = ap_lua_check_request_rec(L, 1); key = luaL_checkstring(L, 2); cookie = NULL; ap_cookie_read(r, key, &cookie, 0); if (cookie != NULL) { lua_pushstring(L, cookie); return 1; } return 0; }
DoS
0
static int lua_get_cookie(lua_State *L) { const char *key, *cookie; request_rec *r = ap_lua_check_request_rec(L, 1); key = luaL_checkstring(L, 2); cookie = NULL; ap_cookie_read(r, key, &cookie, 0); if (cookie != NULL) { lua_pushstring(L, cookie); return 1; } return 0; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,147
static int lua_ivm_get(lua_State *L) { const char *key, *raw_key; apr_pool_t *pool; lua_ivm_object *object = NULL; request_rec *r = ap_lua_check_request_rec(L, 1); key = luaL_checkstring(L, 2); raw_key = apr_pstrcat(r->pool, "lua_ivm_", key, NULL); apr_global_mutex_lock(lua_ivm_mutex); ...
DoS
0
static int lua_ivm_get(lua_State *L) { const char *key, *raw_key; apr_pool_t *pool; lua_ivm_object *object = NULL; request_rec *r = ap_lua_check_request_rec(L, 1); key = luaL_checkstring(L, 2); raw_key = apr_pstrcat(r->pool, "lua_ivm_", key, NULL); apr_global_mutex_lock(lua_ivm_mutex); ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,148
static int lua_ivm_set(lua_State *L) { const char *key, *raw_key; const char *value = NULL; apr_pool_t *pool; size_t str_len; lua_ivm_object *object = NULL; request_rec *r = ap_lua_check_request_rec(L, 1); key = luaL_checkstring(L, 2); luaL_checkany(L, 3); raw_key = apr_pstrcat(r->p...
DoS
0
static int lua_ivm_set(lua_State *L) { const char *key, *raw_key; const char *value = NULL; apr_pool_t *pool; size_t str_len; lua_ivm_object *object = NULL; request_rec *r = ap_lua_check_request_rec(L, 1); key = luaL_checkstring(L, 2); luaL_checkany(L, 3); raw_key = apr_pstrcat(r->p...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,149
static int lua_read_body(request_rec *r, const char **rbuf, apr_off_t *size, apr_off_t maxsize) { int rc = OK; if ((rc = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR))) { return (rc); } if (ap_should_client_block(r)) { /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ char ...
DoS
0
static int lua_read_body(request_rec *r, const char **rbuf, apr_off_t *size, apr_off_t maxsize) { int rc = OK; if ((rc = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR))) { return (rc); } if (ap_should_client_block(r)) { /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ char ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,150
static int lua_websocket_ping(lua_State *L) { apr_socket_t *sock; apr_size_t plen; char prelude[2]; apr_status_t rv; request_rec *r = ap_lua_check_request_rec(L, 1); sock = ap_get_conn_socket(r->connection); /* Send a header that says: PING. */ prelude[0] = 0x89; /* ping opcode */...
DoS
0
static int lua_websocket_ping(lua_State *L) { apr_socket_t *sock; apr_size_t plen; char prelude[2]; apr_status_t rv; request_rec *r = ap_lua_check_request_rec(L, 1); sock = ap_get_conn_socket(r->connection); /* Send a header that says: PING. */ prelude[0] = 0x89; /* ping opcode */...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,151
static apr_status_t lua_websocket_readbytes(conn_rec* c, char* buffer, apr_off_t len) { apr_bucket_brigade *brigade = apr_brigade_create(c->pool, c->bucket_alloc); apr_status_t rv; rv = ap_get_brigade(c->input_filters, brigade, AP_MODE_READBYTES, APR_BLOCK_READ, len); if (rv == AP...
DoS
0
static apr_status_t lua_websocket_readbytes(conn_rec* c, char* buffer, apr_off_t len) { apr_bucket_brigade *brigade = apr_brigade_create(c->pool, c->bucket_alloc); apr_status_t rv; rv = ap_get_brigade(c->input_filters, brigade, AP_MODE_READBYTES, APR_BLOCK_READ, len); if (rv == AP...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,152
static int lua_websocket_write(lua_State *L) { const char *string; apr_status_t rv; size_t len; int raw = 0; char prelude; request_rec *r = ap_lua_check_request_rec(L, 1); if (lua_isboolean(L, 3)) { raw = lua_toboolean(L, 3); } string = lua_tolstring(L, 2, &len); ...
DoS
0
static int lua_websocket_write(lua_State *L) { const char *string; apr_status_t rv; size_t len; int raw = 0; char prelude; request_rec *r = ap_lua_check_request_rec(L, 1); if (lua_isboolean(L, 3)) { raw = lua_toboolean(L, 3); } string = lua_tolstring(L, 2, &len); ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,153
static req_fun_t *makefun(const void *fun, int type, apr_pool_t *pool) { req_fun_t *rft = apr_palloc(pool, sizeof(req_fun_t)); rft->fun = fun; rft->type = type; return rft; }
DoS
0
static req_fun_t *makefun(const void *fun, int type, apr_pool_t *pool) { req_fun_t *rft = apr_palloc(pool, sizeof(req_fun_t)); rft->fun = fun; rft->type = type; return rft; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,154
static int req_add_output_filter(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); const char *name = luaL_checkstring(L, 2); ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01485) "adding output filter %s", name); ap_add_output_filter(name, L, r, r->connection); ...
DoS
0
static int req_add_output_filter(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); const char *name = luaL_checkstring(L, 2); ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(01485) "adding output filter %s", name); ap_add_output_filter(name, L, r, r->connection); ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,155
static int req_alert(lua_State *L) { return req_log_at(L, APLOG_ALERT); }
DoS
0
static int req_alert(lua_State *L) { return req_log_at(L, APLOG_ALERT); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,156
static const char *req_ap_auth_type_field(request_rec *r) { return r->ap_auth_type; }
DoS
0
static const char *req_ap_auth_type_field(request_rec *r) { return r->ap_auth_type; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,157
static int req_aprtable2luatable_cb(void *l, const char *key, const char *value) { int t; lua_State *L = (lua_State *) l; /* [table<s,t>, table<s,s>] */ /* rstack_dump(L, RRR, "start of cb"); */ /* L is [table<s,t>, table<s,s>] */ /* build complex */ lua_...
DoS
0
static int req_aprtable2luatable_cb(void *l, const char *key, const char *value) { int t; lua_State *L = (lua_State *) l; /* [table<s,t>, table<s,s>] */ /* rstack_dump(L, RRR, "start of cb"); */ /* L is [table<s,t>, table<s,s>] */ /* build complex */ lua_...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,158
static int req_aprtable2luatable_cb_len(void *l, const char *key, const char *value, size_t len) { int t; lua_State *L = (lua_State *) l; /* [table<s,t>, table<s,s>] */ /* rstack_dump(L, RRR, "start of cb"); */ /* L is [table<s,t>, table<s,s>] */ /* build comp...
DoS
0
static int req_aprtable2luatable_cb_len(void *l, const char *key, const char *value, size_t len) { int t; lua_State *L = (lua_State *) l; /* [table<s,t>, table<s,s>] */ /* rstack_dump(L, RRR, "start of cb"); */ /* L is [table<s,t>, table<s,s>] */ /* build comp...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,159
static const char *req_args_field(request_rec *r) { return r->args; }
DoS
0
static const char *req_args_field(request_rec *r) { return r->args; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,160
static int req_assbackwards_field(request_rec *r) { return r->assbackwards; }
DoS
0
static int req_assbackwards_field(request_rec *r) { return r->assbackwards; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,161
static const char *req_content_encoding_field(request_rec *r) { return r->content_encoding; }
DoS
0
static const char *req_content_encoding_field(request_rec *r) { return r->content_encoding; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,162
static const char *req_context_prefix(request_rec *r) { return ap_context_prefix(r); }
DoS
0
static const char *req_context_prefix(request_rec *r) { return ap_context_prefix(r); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,163
static int req_crit(lua_State *L) { return req_log_at(L, APLOG_CRIT); }
DoS
0
static int req_crit(lua_State *L) { return req_log_at(L, APLOG_CRIT); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,164
static int req_debug(lua_State *L) { return req_log_at(L, APLOG_DEBUG); }
DoS
0
static int req_debug(lua_State *L) { return req_log_at(L, APLOG_DEBUG); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,165
static int req_dispatch(lua_State *L) { apr_hash_t *dispatch; req_fun_t *rft; request_rec *r = ap_lua_check_request_rec(L, 1); const char *name = luaL_checkstring(L, 2); lua_pop(L, 2); lua_getfield(L, LUA_REGISTRYINDEX, "Apache2.Request.dispatch"); dispatch = lua_touserdata(L, 1); lua_p...
DoS
0
static int req_dispatch(lua_State *L) { apr_hash_t *dispatch; req_fun_t *rft; request_rec *r = ap_lua_check_request_rec(L, 1); const char *name = luaL_checkstring(L, 2); lua_pop(L, 2); lua_getfield(L, LUA_REGISTRYINDEX, "Apache2.Request.dispatch"); dispatch = lua_touserdata(L, 1); lua_p...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,166
static const char *req_document_root(request_rec *r) { return ap_document_root(r); }
DoS
0
static const char *req_document_root(request_rec *r) { return ap_document_root(r); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,167
static int req_err(lua_State *L) { return req_log_at(L, APLOG_ERR); }
DoS
0
static int req_err(lua_State *L) { return req_log_at(L, APLOG_ERR); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,168
static req_table_t* req_err_headers_out(request_rec *r) { req_table_t* t = apr_palloc(r->pool, sizeof(req_table_t)); t->r = r; t->t = r->err_headers_out; t->n = "err_headers_out"; return t; }
DoS
0
static req_table_t* req_err_headers_out(request_rec *r) { req_table_t* t = apr_palloc(r->pool, sizeof(req_table_t)); t->r = r; t->t = r->err_headers_out; t->n = "err_headers_out"; return t; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,169
static int req_escape_html(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); const char *s = luaL_checkstring(L, 2); lua_pushstring(L, ap_escape_html(r->pool, s)); return 1; }
DoS
0
static int req_escape_html(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); const char *s = luaL_checkstring(L, 2); lua_pushstring(L, ap_escape_html(r->pool, s)); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,170
static req_table_t* req_headers_in(request_rec *r) { req_table_t* t = apr_palloc(r->pool, sizeof(req_table_t)); t->r = r; t->t = r->headers_in; t->n = "headers_in"; return t; }
DoS
0
static req_table_t* req_headers_in(request_rec *r) { req_table_t* t = apr_palloc(r->pool, sizeof(req_table_t)); t->r = r; t->t = r->headers_in; t->n = "headers_in"; return t; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,171
static req_table_t* req_headers_out(request_rec *r) { req_table_t* t = apr_palloc(r->pool, sizeof(req_table_t)); t->r = r; t->t = r->headers_out; t->n = "headers_out"; return t; }
DoS
0
static req_table_t* req_headers_out(request_rec *r) { req_table_t* t = apr_palloc(r->pool, sizeof(req_table_t)); t->r = r; t->t = r->headers_out; t->n = "headers_out"; return t; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,172
static const char *req_hostname_field(request_rec *r) { return r->hostname; }
DoS
0
static const char *req_hostname_field(request_rec *r) { return r->hostname; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,173
static int req_info(lua_State *L) { return req_log_at(L, APLOG_INFO); }
DoS
0
static int req_info(lua_State *L) { return req_log_at(L, APLOG_INFO); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,174
static int req_log_at(lua_State *L, int level) { const char *msg; request_rec *r = ap_lua_check_request_rec(L, 1); lua_Debug dbg; lua_getstack(L, 1, &dbg); lua_getinfo(L, "Sl", &dbg); msg = luaL_checkstring(L, 2); ap_log_rerror(dbg.source, dbg.currentline, APLOG_MODULE_INDEX, level, 0, ...
DoS
0
static int req_log_at(lua_State *L, int level) { const char *msg; request_rec *r = ap_lua_check_request_rec(L, 1); lua_Debug dbg; lua_getstack(L, 1, &dbg); lua_getinfo(L, "Sl", &dbg); msg = luaL_checkstring(L, 2); ap_log_rerror(dbg.source, dbg.currentline, APLOG_MODULE_INDEX, level, 0, ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,175
static const char *req_log_id_field(request_rec *r) { return r->log_id; }
DoS
0
static const char *req_log_id_field(request_rec *r) { return r->log_id; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,176
static const char *req_method_field(request_rec *r) { return r->method; }
DoS
0
static const char *req_method_field(request_rec *r) { return r->method; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,177
static int req_newindex(lua_State *L) { const char *key; /* request_rec* r = lua_touserdata(L, lua_upvalueindex(1)); */ /* const char* key = luaL_checkstring(L, -2); */ request_rec *r = ap_lua_check_request_rec(L, 1); key = luaL_checkstring(L, 2); if (0 == strcmp("args", key)) { const c...
DoS
0
static int req_newindex(lua_State *L) { const char *key; /* request_rec* r = lua_touserdata(L, lua_upvalueindex(1)); */ /* const char* key = luaL_checkstring(L, -2); */ request_rec *r = ap_lua_check_request_rec(L, 1); key = luaL_checkstring(L, 2); if (0 == strcmp("args", key)) { const c...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,178
static req_table_t* req_notes(request_rec *r) { req_table_t* t = apr_palloc(r->pool, sizeof(req_table_t)); t->r = r; t->t = r->notes; t->n = "notes"; return t; }
DoS
0
static req_table_t* req_notes(request_rec *r) { req_table_t* t = apr_palloc(r->pool, sizeof(req_table_t)); t->r = r; t->t = r->notes; t->n = "notes"; return t; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,179
static int req_notice(lua_State *L) { return req_log_at(L, APLOG_NOTICE); }
DoS
0
static int req_notice(lua_State *L) { return req_log_at(L, APLOG_NOTICE); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,180
static int req_parseargs(lua_State *L) { apr_table_t *form_table; request_rec *r = ap_lua_check_request_rec(L, 1); lua_newtable(L); lua_newtable(L); /* [table, table] */ ap_args_to_table(r, &form_table); apr_table_do(req_aprtable2luatable_cb, L, form_table, NULL); return 2; ...
DoS
0
static int req_parseargs(lua_State *L) { apr_table_t *form_table; request_rec *r = ap_lua_check_request_rec(L, 1); lua_newtable(L); lua_newtable(L); /* [table, table] */ ap_args_to_table(r, &form_table); apr_table_do(req_aprtable2luatable_cb, L, form_table, NULL); return 2; ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,181
static int req_parsebody(lua_State *L) { apr_array_header_t *pairs; apr_off_t len; int res; apr_size_t size; apr_size_t max_post_size; char *multipart; const char *contentType; request_rec *r = ap_lua_check_request_rec(L, 1); max_post_size = (apr_size_t) luaL_optint(L, 2, MA...
DoS
0
static int req_parsebody(lua_State *L) { apr_array_header_t *pairs; apr_off_t len; int res; apr_size_t size; apr_size_t max_post_size; char *multipart; const char *contentType; request_rec *r = ap_lua_check_request_rec(L, 1); max_post_size = (apr_size_t) luaL_optint(L, 2, MA...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,182
static const char *req_path_info_field(request_rec *r) { return r->path_info; }
DoS
0
static const char *req_path_info_field(request_rec *r) { return r->path_info; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,183
static const char *req_protocol_field(request_rec *r) { return r->protocol; }
DoS
0
static const char *req_protocol_field(request_rec *r) { return r->protocol; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,184
static const char *req_proxyreq_field(request_rec *r) { switch (r->proxyreq) { case PROXYREQ_NONE: return "PROXYREQ_NONE"; case PROXYREQ_PROXY: return "PROXYREQ_PROXY"; case PROXYREQ_REVERSE: return "PROXYREQ_REVERSE"; case PROXYREQ_RESPONSE: return "PROXYREQ_RESPONSE"; ...
DoS
0
static const char *req_proxyreq_field(request_rec *r) { switch (r->proxyreq) { case PROXYREQ_NONE: return "PROXYREQ_NONE"; case PROXYREQ_PROXY: return "PROXYREQ_PROXY"; case PROXYREQ_REVERSE: return "PROXYREQ_REVERSE"; case PROXYREQ_RESPONSE: return "PROXYREQ_RESPONSE"; ...
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,185
static const char *req_range_field(request_rec *r) { return r->range; }
DoS
0
static const char *req_range_field(request_rec *r) { return r->range; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,186
static int req_remaining_field(request_rec *r) { return r->remaining; }
DoS
0
static int req_remaining_field(request_rec *r) { return r->remaining; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,187
static int req_ssl_is_https_field(request_rec *r) { return ap_lua_ssl_is_https(r->connection); }
DoS
0
static int req_ssl_is_https_field(request_rec *r) { return ap_lua_ssl_is_https(r->connection); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,188
static int req_ssl_var_lookup(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); const char *s = luaL_checkstring(L, 2); const char *res = ap_lua_ssl_val(r->pool, r->server, r->connection, r, (char *)s); lua_pushstring(L, res); return 1; }
DoS
0
static int req_ssl_var_lookup(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); const char *s = luaL_checkstring(L, 2); const char *res = ap_lua_ssl_val(r->pool, r->server, r->connection, r, (char *)s); lua_pushstring(L, res); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,189
static int req_status_field(request_rec *r) { return r->status; }
DoS
0
static int req_status_field(request_rec *r) { return r->status; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,190
static const char *req_unparsed_uri_field(request_rec *r) { return r->unparsed_uri; }
DoS
0
static const char *req_unparsed_uri_field(request_rec *r) { return r->unparsed_uri; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,191
static char *req_uri_field(request_rec *r) { return r->uri; }
DoS
0
static char *req_uri_field(request_rec *r) { return r->uri; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,192
static const char *req_user_field(request_rec *r) { return r->user; }
DoS
0
static const char *req_user_field(request_rec *r) { return r->user; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,193
static const char *req_useragent_ip_field(request_rec *r) { return r->useragent_ip; }
DoS
0
static const char *req_useragent_ip_field(request_rec *r) { return r->useragent_ip; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,194
static int req_warn(lua_State *L) { return req_log_at(L, APLOG_WARNING); }
DoS
0
static int req_warn(lua_State *L) { return req_log_at(L, APLOG_WARNING); }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,195
static int req_write(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); size_t n; int rv; const char *buf = luaL_checklstring(L, 2, &n); rv = ap_rwrite((void *) buf, n, r); lua_pushinteger(L, rv); return 1; }
DoS
0
static int req_write(lua_State *L) { request_rec *r = ap_lua_check_request_rec(L, 1); size_t n; int rv; const char *buf = luaL_checklstring(L, 2, &n); rv = ap_rwrite((void *) buf, n, r); lua_pushinteger(L, rv); return 1; }
@@ -2227,6 +2227,7 @@ static int lua_websocket_read(lua_State *L) { apr_socket_t *sock; apr_status_t rv; + int do_read = 1; int n = 0; apr_size_t len = 1; apr_size_t plen = 0; @@ -2244,6 +2245,8 @@ static int lua_websocket_read(lua_State *L) mask_bytes = apr_pcalloc(r->pool, 4); s...
CWE-20
null
null
36,196
int do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len, int create_empty_fragment) { unsigned char *p,*pseq; int i,mac_size,clear=0; int prefix_len = 0; int eivlen; SSL3_RECORD *wr; SSL3_BUFFER *wb; SSL_SESSION *sess; /* first check if there is a SSL3_BUFFER still being written * ou...
DoS Overflow
0
int do_dtls1_write(SSL *s, int type, const unsigned char *buf, unsigned int len, int create_empty_fragment) { unsigned char *p,*pseq; int i,mac_size,clear=0; int prefix_len = 0; int eivlen; SSL3_RECORD *wr; SSL3_BUFFER *wb; SSL_SESSION *sess; /* first check if there is a SSL3_BUFFER still being written * ou...
@@ -212,7 +212,7 @@ dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) /* Limit the size of the queue to prevent DOS attacks */ if (pqueue_size(queue->q) >= 100) return 0; - + rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA)); item = pitem_new(priority, rdata); if (rdata == NULL |...
CWE-119
null
null
36,197
dtls1_copy_record(SSL *s, pitem *item) { DTLS1_RECORD_DATA *rdata; rdata = (DTLS1_RECORD_DATA *)item->data; if (s->s3->rbuf.buf != NULL) OPENSSL_free(s->s3->rbuf.buf); s->packet = rdata->packet; s->packet_length = rdata->packet_length; memcpy(&(s->s3->rbuf), &(rdata->rbuf)...
DoS Overflow
0
dtls1_copy_record(SSL *s, pitem *item) { DTLS1_RECORD_DATA *rdata; rdata = (DTLS1_RECORD_DATA *)item->data; if (s->s3->rbuf.buf != NULL) OPENSSL_free(s->s3->rbuf.buf); s->packet = rdata->packet; s->packet_length = rdata->packet_length; memcpy(&(s->s3->rbuf), &(rdata->rbuf)...
@@ -212,7 +212,7 @@ dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) /* Limit the size of the queue to prevent DOS attacks */ if (pqueue_size(queue->q) >= 100) return 0; - + rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA)); item = pitem_new(priority, rdata); if (rdata == NULL |...
CWE-119
null
null
36,198
int dtls1_dispatch_alert(SSL *s) { int i,j; void (*cb)(const SSL *ssl,int type,int val)=NULL; unsigned char buf[DTLS1_AL_HEADER_LENGTH]; unsigned char *ptr = &buf[0]; s->s3->alert_dispatch=0; memset(buf, 0x00, sizeof(buf)); *ptr++ = s->s3->send_alert[0]; *ptr++ = s->s3->send_alert[1]; #ifdef DTLS1_AD_MISSIN...
DoS Overflow
0
int dtls1_dispatch_alert(SSL *s) { int i,j; void (*cb)(const SSL *ssl,int type,int val)=NULL; unsigned char buf[DTLS1_AL_HEADER_LENGTH]; unsigned char *ptr = &buf[0]; s->s3->alert_dispatch=0; memset(buf, 0x00, sizeof(buf)); *ptr++ = s->s3->send_alert[0]; *ptr++ = s->s3->send_alert[1]; #ifdef DTLS1_AD_MISSIN...
@@ -212,7 +212,7 @@ dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) /* Limit the size of the queue to prevent DOS attacks */ if (pqueue_size(queue->q) >= 100) return 0; - + rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA)); item = pitem_new(priority, rdata); if (rdata == NULL |...
CWE-119
null
null
36,199
dtls1_get_bitmap(SSL *s, SSL3_RECORD *rr, unsigned int *is_next_epoch) { *is_next_epoch = 0; /* In current epoch, accept HM, CCS, DATA, & ALERT */ if (rr->epoch == s->d1->r_epoch) return &s->d1->bitmap; /* Only HM and ALERT messages can be from the next epoch */ else if (rr->epoch...
DoS Overflow
0
dtls1_get_bitmap(SSL *s, SSL3_RECORD *rr, unsigned int *is_next_epoch) { *is_next_epoch = 0; /* In current epoch, accept HM, CCS, DATA, & ALERT */ if (rr->epoch == s->d1->r_epoch) return &s->d1->bitmap; /* Only HM and ALERT messages can be from the next epoch */ else if (rr->epoch...
@@ -212,7 +212,7 @@ dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) /* Limit the size of the queue to prevent DOS attacks */ if (pqueue_size(queue->q) >= 100) return 0; - + rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA)); item = pitem_new(priority, rdata); if (rdata == NULL |...
CWE-119
null
null