-
-
Notifications
You must be signed in to change notification settings - Fork 747
Open
Description
The code below causes an array bounds violation. A FormatException should be thrown instead.
void main()
{
import std.format, std.exception;
assertThrown!FormatException(format("%."));
assertThrown!FormatException(format("%.*"));
}This is the offending code:
Lines 459 to 464 in 205256a
| case '.': | |
| // Precision | |
| if (trailing[++i] == '*') | |
| { | |
| if (isDigit(trailing[++i])) | |
| { |
Metadata
Metadata
Assignees
Labels
No labels