[Issue 21707] New: std.base64: Faulty input creates range error instead of Base64Exception
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 13 14:29:02 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21707
Issue ID: 21707
Summary: std.base64: Faulty input creates range error instead
of Base64Exception
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: bugzilla at bernis-buecher.de
This fails:
unittest
{
import std.exception : assertThrown;
char[][] t = [[ 'Z', 'g', '=' ]];
assertThrown!Base64Exception(Base64.decoder(t));
}
--
More information about the Digitalmars-d-bugs
mailing list