lys_implement
: NULL pointer dereference via lys_parse_mem
#1979
Labels
is:bug
Bug description.
status:completed
From the developer perspective, the issue was solved (bug fixed, question answered,...)
Hello, I find a null pointer derefence error in
lys_implement()
when I try to fuzz libyang vialys_parse_mem.c
.In functionlys_implement()
, it doesn't check whether the value of mod->revision is NULL. In some cases, it can be NULL, which leads to the operation ofstrcmp(m->revision, mod->revision) > 0
in line 1760 that results in a crash:And a gdb debug details:
The text was updated successfully, but these errors were encountered: