nginx/ngx-rust

Crash in Error Handling in upstream.rs in examples

Closed this issue · 0 comments

jmccl commented

The four calls to ngx_conf_log_error in upstream.rs coerce the error string to a '* const c_char', but the error string won't be null terminated so it will crash.

(I have not reproduced. I used the code as a template in my own module and it crashed. I fixed my own code via the discussion here.)