Mercury Bugs - mercury
View Issue Details
0000376mercuryBugpublic2015-02-06 15:252015-02-17 12:35
Assigned Towangp 
PlatformOSOS Version
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

2015-02-06 15:51   
No dissent from me.
2015-02-10 15:03   
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.
2015-02-10 15:30   
No and given that the behaviour is undocumented you should feel free to break it.
2015-02-17 12:35   
Fixed in commit 6a267a8

Issue History
2015-02-06 15:25wangpNew Issue
2015-02-06 15:51zsNote Added: 0000807
2015-02-10 15:03wangpNote Added: 0000809
2015-02-10 15:30juliensfNote Added: 0000810
2015-02-17 12:35wangpNote Added: 0000811
2015-02-17 12:35wangpStatusnew => resolved
2015-02-17 12:35wangpResolutionopen => fixed
2015-02-17 12:35wangpAssigned To => wangp