[
https://issues.apache.org/jira/browse/XERCESC-1837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alberto Massari resolved XERCESC-1837.
--------------------------------------
Resolution: Fixed
Fix Version/s: 3.1.0
Assignee: Alberto Massari
The fix is in SVN; however, it should not have any real effect, as the two
boolean expression return different values only when prevEntity == null and
prevReaderThrowAtEnd == true. But prevReaderThrowAtEnd is set to true only when
reading a DTD, and in that case prevEntity is never null (as it points to the
fake entity used to represent the DTD itself).
> Comment in ReaderMgr::popReader does not match code
> ---------------------------------------------------
>
> Key: XERCESC-1837
> URL: https://issues.apache.org/jira/browse/XERCESC-1837
> Project: Xerces-C++
> Issue Type: Bug
> Components: Miscellaneous
> Affects Versions: 3.0.1
> Reporter: Ryan Stone
> Assignee: Alberto Massari
> Priority: Minor
> Fix For: 3.1.0
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]