Skip to content

krun: negative return value is used as second argument to crun_make_error() #1958

@eriksjolund

Description

@eriksjolund

ret is a negative number here

if (UNLIKELY (ret < 0))
return ret;

Because of that the second argument passed to crun_make_error() is negative:

return crun_make_error (err, ret, "exec container process failed with handler as `%s`", entrypoint_args->custom_handler->vtable->name);

The function crun_make_error() expects the second argument to be non-negative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions