Skip to content

libyang issue with arguments that are swapped #1081

@ygorelik

Description

@ygorelik

Opened originally by ericjmonson here.

Current Behavior

I don't see a way to submit an issue against the forked version of libyang ... however, there is a bug that is causing a segfault in my application.

https://github.com/ygorelik/libyang/blob/master/src/xpath.c#L2991

The function call has the 1st and 2nd arguments swapped. The original code looks like this:

LOGWRN("Argument #%u of %s is node \"%s\", not of string-type.", __func__, i + 1, sleaf->name);

The correct code should look like this:

LOGWRN("Argument #%u of %s is node \"%s\", not of string-type.", i + 1, __func__, sleaf->name);

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