Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.0.1
-
None
Description
The following is in https://svn.apache.org/repos/asf/xerces/c/trunk/src/xercesc/internal/ReaderMgr.cpp
//
// If there was a previous entity, and either the fThrowEOE flag is set
// or reader was marked as such, then throw an end of entity.
//
if (prevEntity && fThrowEOE || prevReaderThrowAtEnd)
throw EndOfEntityException(prevEntity, readerNum);
However, the expression in the if statement is equivalent to (prevEntity && fThrowEOE) || prevReaderThrowAtEnd, not prevEntity && (fThrowEOE || prevReaderThrowAtEnd) as the comment suggests. I believe that the latter expression is what is intended so this is probably a bug.