Hi,
I found that ly_ctx_load_module() crashes with a NULL-pointer dereference in ly_ctx_new_change() when all of the following conditions are met:
- The context was created with
LY_CTX_ALL_IMPLEMENTED.
- The loaded module derives an identity from an imported module - identity derived { base imported:base-type; }.
- The imported module contains at least one data node (e.g., a leaf).
Reproduction is attached.
repro.zip
Used libyang 5.4.9
Thanks!
Hi,
I found that
ly_ctx_load_module()crashes with a NULL-pointer dereference inly_ctx_new_change()when all of the following conditions are met:LY_CTX_ALL_IMPLEMENTED.Reproduction is attached.
repro.zip
Used libyang 5.4.9
Thanks!