Nim icon indicating copy to clipboard operation
Nim copied to clipboard

fixes #22852; fixes #23435; SIGSEGV when slicing string or seq[T] with index out of range

Open ringabout opened this issue 1 year ago • 0 comments

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]

ringabout avatar Feb 05 '24 09:02 ringabout