You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing XML files, string_to_integer(...) clips invalid values to max or min values and does not indicate that invalid values are found. I would prefer that this function throws some out-of-bounds exception.
The text was updated successfully, but these errors were encountered:
This is consistent with the previous behavior (when using strtoll etc.). Of course indicating an error is better.
While throwing an exception is not a good idea (pugixml does not use exceptions for the most part, xpath_exception being the only unfortunate... uh... exception), especially at this stage where it would throw for callers that do not anticipate it, there are potential alternatives.
Improvements to handling issues like this are tracked in #15.
When parsing XML files, string_to_integer(...) clips invalid values to max or min values and does not indicate that invalid values are found. I would prefer that this function throws some out-of-bounds exception.
The text was updated successfully, but these errors were encountered: