summary refs log tree commit diff stats
path: root/tests/stdlib/tparseutils.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-05-27 20:13:18 +0800
committerGitHub <noreply@github.com>2024-05-27 14:13:18 +0200
commitc615828ccb2b309ac03aab93d94b40af6b4079ff (patch)
tree3727488e9bfce7ffeba47e03ddaba561fe4aa0ab /tests/stdlib/tparseutils.nim
parent3bda5fc840870f6589e4bdbcbbdc811bde599969 (diff)
downloadNim-c615828ccb2b309ac03aab93d94b40af6b4079ff.tar.gz
fixes #22852; fixes #23435; fixes #23645; SIGSEGV when slicing string or seq[T] with index out of range (#23279)
follow up https://github.com/nim-lang/Nim/pull/23013

fixes #22852
fixes #23435
fixes #23645

reports rangeDefect correctly

```nim
/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]
```
Diffstat (limited to 'tests/stdlib/tparseutils.nim')
0 files changed, 0 insertions, 0 deletions
f='#n130'>130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177