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
crashes with off-by-one error. (github inserts a newline there, there is no newline on the second example after comment)
toml\src\toml\toml.d(1007): index [328] isout of bounds for array of length 328
code here:
voidreadKeyValue(string[] keys) {
if (clear()) {
enforceParser(data[index++] =='=', "Expected '=' after key declaration");
if (clear!false()) {
set(keys, readValue());
// there must be nothing after the key/value declaration except comments and whitespacesif (clear!false())
1007: enforceParser(data[index] =='\n', "Invalid characters after value declaration: "~ data[index]);
The text was updated successfully, but these errors were encountered:
This TOML might violate the spec, but there should be a proper error then, not a random range violation. I only see warnings about newlines after keyvalue pairs though:
works fine (has newline after comment)
crashes with off-by-one error. (github inserts a newline there, there is no newline on the second example after comment)
code here:
The text was updated successfully, but these errors were encountered: