lodo1995 / experimental.xml

A replacement of Phobos std.xml
https://lodo1995.github.io/experimental.xml
Boost Software License 1.0
20 stars 8 forks source link

Release mode: segfault on ill-formed input #26

Closed lodo1995 closed 8 years ago

lodo1995 commented 8 years ago

dub -b release -c test

lodo1995 commented 8 years ago

Found the problem: if the input is invalid, advanceUntilAny may run out of bounds. In debug mode, a RangeError is thrown, which is interpreted by the test driver as a correct behaviour, while the correct behaviour would be to raise an UnexpectedEndOfStream exception. In release mode, no RangeError is thrown, the parser does not perform any check and so a segmentation fault happens.