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

Segmentation fault in yyparse due to malformed pattern statement value #740

Closed
jvijtiuk opened this issue Mar 29, 2019 · 1 comment
Closed

Comments

@jvijtiuk
Copy link
Collaborator

Hello,

this file crashes libyang when it is parsed with lys_parse_path:

module xpath-1.1 {
    namespace "urn:xpath-1.1";
    prefix xp;

    container top {
        leaf identref {
            type mdentityref {
                base:iwo;
                     pattern '[A-Z]+';
                pattern '[A-Z]+';
                   pattern '[A-Z]+';
                    pattern '[A-Z]+';
                pattern '[./key2, 2, 3), 'a') and not(starts-with(./key2, 'a')))";
}

Regards,
Juraj

@ret2libc
Copy link

CVE-2019-20396 was assigned to this issue.

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

2 participants