Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I'm not really a C-level language lawyer, but the way how the code routinely uses two differently-types pointers to access the same object is undefined behavior in C. Just having "the same layout" of individual struct members [does not make these types compatible](https://en.cppreference.com/w/c/language/type#Compatible_types), and that means that it is necessary to disable [strict aliasing](https://en.cppreference.com/w/c/language/object#Strict_aliasing) rules in the whole of libyang, as far as I can tell.
- Loading branch information