>> an easy way to block sql attacks, ea.
>Yeah, you can do that yourself :)
But it would be easier with an example from you :)
>Looks like I need to run a Windows box to test my code sometime in the future :)
Get yourself virtualbox, surely you got some w7 license laying about doing nothing :)
>Please try out these two project's git master again on your side :)
Done, here are the patches and other findings, its not too big to fit here;
lua-nginx-module/src/ngx_http_lua_control.c(258) : warning C4307: '*' : integral constant overflow
see also http://msdn.microsoft.com/en-us/library/4kze989h.aspx
ngx_http_lua_control.c
line 257:
ngx_hash(ngx_hash(ngx_hash(ngx_hash(ngx_hash(ngx_hash(
ngx_hash('l', 'o'), 'c'), 'a'), 't'), 'i'), 'o'), 'n');
*I count 7x ngx_hash but 8 hash values.
==============================================================================
lua-nginx-module/src/ngx_http_lua_subrequest.c(1159) : warning C4307: '*' : integral constant overflow
see also http://msdn.microsoft.com/en-us/library/4kze989h.aspx
ngx_http_lua_subrequest.c
line 1156:
h->hash = ngx_hash(ngx_hash(ngx_hash(ngx_hash(ngx_hash(ngx_hash(ngx_hash(
ngx_hash(ngx_hash(ngx_hash(ngx_hash(ngx_hash(
ngx_hash('c', 'o'), 'n'), 't'), 'e'), 'n'), 't'), '-'), 'l'), 'e'),
'n'), 'g'), 't'), 'h');
*I count 13x ngx_hash but 14 hash values.
==============================================================================
\ngx_devel_kit\src\ndk_log.h(162) :fatal error C1021: invalid preprocessor command 'warning'
-162
#warning "Nginx Devel Kit logging without variadic macros not yet implemented"
+162
/* #warning "Nginx Devel Kit logging without variadic macros not yet implemented" */
==============================================================================
/lua-nginx-module/src/ngx_http_lua_shdict.c(972) : error C2065: 'ushort' : undeclared identifier
/lua-nginx-module/src/ngx_http_lua_shdict.c(972) : error C2146: syntax error : missing ';' before identifier 'key'
/lua-nginx-module/src/ngx_http_lua_shdict.c(1079) : error C2065: 'ushort' : undeclared identifier
/lua-nginx-module/src/ngx_http_lua_shdict.c(1079) : error C2146: syntax error : missing ';' before identifier 'key'
-972
sd->key_len = (ushort) key.len;
+972
sd->key_len = (u_short) key.len;
-1079
sd->key_len = (ushort) key.len;
+1079
sd->key_len = (u_short) key.len;
==============================================================================
==============================================================================
/lua-nginx-module/src/ngx_http_lua_output.c(395) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
==============================================================================
objs/lib/lua-nginx-module/src/ngx_http_lua_headers_out.c(147) : warning C4307: '*' : integral constant overflow
objs/lib/lua-nginx-module/src/ngx_http_lua_headers_out.c(147) : warning C4307: '*' : integral constant overflow
objs/lib/lua-nginx-module/src/ngx_http_lua_headers_out.c(538) : warning C4307: '*' : integral constant overflow
objs/lib/lua-nginx-module/src/ngx_http_lua_headers_out.c(538) : warning C4307: '*' : integral constant overflow
==============================================================================
objs/lib/lua-nginx-module/src/ngx_http_lua_clfactory.c(368) : warning C4022: 'GetFileInformationByHandle' : pointer mismatch for actual parameter 1
objs/lib/lua-nginx-module/src/ngx_http_lua_clfactory.c(368) : warning C4996: 'fileno': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _fileno. See online help for details.