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

“lys_node_free” function's arg node->module can be NULL, which leads to assert. #1452

Closed
zounathan opened this issue Mar 8, 2021 · 2 comments

Comments

@zounathan
Copy link

zounathan commented Mar 8, 2021

lys_parse_path(ctx, file, LYS_IN_YIN);

payload:

<?xm?>
<module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:m="urn:libyang:tests:mandatory" name="mandatory">
  <yang-version value="1"/>
  <namespace uri="urn:libyang:tests:mandatory"/>
  <prefix value="m"/>
  <revision date="2016-04-11">
    <description>   <text>Initial revision.</text>
  </description>
  </revision>
  <grouping name="group2">
      <leaf name="leaf6">
  <type name="empty"/>   <mandatory value="true"/>
      </leaf>
  </grouping>
	 <grouping name="group1">
      <uses namd="group2"/>
  </grouping>
  <container name="top">
     <leaf name="obsolete">
      <type name="strixg"/>
      <status value="obsolete"/>
      <mandatory value="true"/>
    </leaf>
    <leaf name="obsolet|-inherited">
      <type name="string"/>
      <mandatory value="true"/>
    </leaf>
  </container>
</module>
@zounathan zounathan changed the title “lys_node_free” function's arg node->module can be NULL, which lead to assert. “lys_node_free” function's arg node->module can be NULL, which leads to assert. Mar 8, 2021
@michalvasko
Copy link
Member

Right, should work properly now.

@fredgan
Copy link
Contributor

fredgan commented May 25, 2021

CVE-2021-28905 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

3 participants