Menu

#224 Possible bug in file Ft/Xml/src/domlette/expat_module.c line 5630

Current_CVS
open
nobody
None
5
2019-02-11
2019-02-11
No

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

Discussion


Log in to post a comment.

MongoDB Logo MongoDB