Nim
Nim copied to clipboard
fixes #22852; fixes #23435; SIGSEGV when slicing string or seq[T] with index out of range
follow up https://github.com/nim-lang/Nim/pull/23013
fixes #22852 fixes #23435
reports rangeDefect correctly
/workspaces/Nim/test9.nim(1) test9
/workspaces/Nim/lib/system/indices.nim(116) []
/workspaces/Nim/lib/system/fatal.nim(53) sysFatal
Error: unhandled exception: value out of range: -2 notin 0 .. 9223372036854775807 [RangeDefect]