Re: [PR] fix: NaN bypasses minInclusive/maxInclusive facet s [xerces-c]
gdesrosiers1805 (via GitHub) <[email protected]> Sun, 12 Apr 2026 06:41:04 -0000
| Newsgroups | gmane.text.xml.xerces-c.devel |
|---|---|
| Message-ID | <PR_kwDODeOUTs7RvPIe-9f64d354-39fd-4483-aba0-df7ce4aefcb8@gitbox.apache.org> |
gdesrosiers1805 commented on PR #64:
URL: https://github.com/apache/xerces-c/pull/64#issuecomment-4230932517
bug can be reproduced by running one of the provided sample programs SAX2COUNT with the following arguments:
SAX2Count -v=always -f testFileName. Test files have been updated here to show difference between inclusive and exclusive facets. below is the output of all 4 different tests files:
1) SAX2Count -v=always -f test_minExclusive.xml
Error at file test_minExclusive.xml, line 3, char 84
Message: value 'NaN' must be greater than or equal to minExclusive facet value '0.0'
2) SAX2Count -v=always -f test_minInclusive.xml
test_minInclusive.xml: 1 ms (1 elems, 1 attrs, 0 spaces, 3 chars)
3) SAX2Count -v=always -f test_maxExclusive.xml
Error at file test_maxExclusive.xml, line 3, char 84
Message: value 'NaN' must be less than maxExclusive facet value '100.0'
4) SAX2Count -v=always -f test_maxInclusive.xml
test_maxInclusive.xml: 0 ms (1 elems, 1 attrs, 0 spaces, 3 chars)
Note:This Bug was discovered in version 3.2.4 but was tested and found as well in latest release 3.3.0 as well.
[test_maxExclusive.xml](https://github.com/user-attachments/files/26654771/test_maxExclusive.xml)
[test_maxInclusive.xml](https://github.com/user-attachments/files/26654772/test_maxInclusive.xml)
[test_minExclusive.xml](https://github.com/user-attachments/files/26654773/test_minExclusive.xml)
[test_minInclusive.xml](https://github.com/user-attachments/files/26654774/test_minInclusive.xml)
[NaN_maxExclusive.xsd.txt](https://github.com/user-attachments/files/26654775/NaN_maxExclusive.xsd.txt)
[NaN_maxInclusive.xsd.txt](https://github.com/user-attachments/files/26654776/NaN_maxInclusive.xsd.txt)
[NaN_minExclusive.xsd.txt](https://github.com/user-attachments/files/26654777/NaN_minExclusive.xsd.txt)
[NaN_minInclusive.xsd.txt](https://github.com/user-attachments/files/26654778/NaN_minInclusive.xsd.txt)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]