2024-07-16 01:51 AEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000376mercuryBugpublic2015-02-17 12:35
Assigned Towangp 
Product Version 
Target VersionFixed in Version 
Summary0000376: base_string_to_int ignores overflow unless base 10
Descriptionbase_string_to_int should always check for under/overflow despite the faulty reasoning in commit 51b8f76. The fix should be easy enough but I will leave this bug report for a bit in case there are dissenting opinions.
TagsNo tags attached.
Attached Files




zs (developer)

No dissent from me.


wangp (developer)

Does anyone require the undocumented behaviour of allowing (and truncating) oversized binary/octal/hexadecimal literals in Mercury source? Maintaining the behaviour requires more work and potentially breaking changes in the library.


juliensf (administrator)

No and given that the behaviour is undocumented you should feel free to break it.


wangp (developer)

Fixed in commit 6a267a8

-Issue History
Date Modified Username Field Change
2015-02-06 15:25 wangp New Issue
2015-02-06 15:51 zs Note Added: 0000807
2015-02-10 15:03 wangp Note Added: 0000809
2015-02-10 15:30 juliensf Note Added: 0000810
2015-02-17 12:35 wangp Note Added: 0000811
2015-02-17 12:35 wangp Status new => resolved
2015-02-17 12:35 wangp Resolution open => fixed
2015-02-17 12:35 wangp Assigned To => wangp
+Issue History