While experimenting with a novel static analysis technique in CodeSonar, we noticed the following potential problem at the next locations:
FilePath: Ft/Xml/src/domlette/expat_module.c
Function: Expat_ParseEntity
Line number: 5630 and 5637
In those lines, namespace_context is deallocated. However, it may refer in some circumestances to implicitContext (see line 5626). Since implicitContext is a statically allocated variable, this would result in deallocating a non-heap value.
Thanks,
Petru-Florin Mihancea