Skip to content

Crash in Error Handling in upstream.rs in examples #92

@jmccl

Description

@jmccl

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions