openresty / lua-nginx-module

Embed the Power of Lua into NGINX HTTP servers
https://openresty.org/
11.31k stars 2.04k forks source link

Lua VM crash when using ngx.exec(), unsafe uri #905

Open jayce opened 8 years ago

jayce commented 8 years ago

See crash point: ngx_http_lua_control.c.

this code return NGX_HTTP_INTERNAL_SERVER_ERROR; causes the VM to crash.

detail:

doujiang24 commented 8 years ago

@Jayce Thanks for your report. Already replied in https://groups.google.com/d/msg/openresty/R4TuNOYqO2o/wgvRoaKZCgAJ

Will you please create a PR, please don't forgot to add test case correspond to it :) Thanks again :)