Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libyang issue with arguments that are swapped #1081

Closed
ygorelik opened this issue Jan 31, 2023 · 1 comment
Closed

libyang issue with arguments that are swapped #1081

ygorelik opened this issue Jan 31, 2023 · 1 comment

Comments

@ygorelik
Copy link
Collaborator

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);
@ygorelik
Copy link
Collaborator Author

Resolved in 0.8.6.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant