Skip to content

Conversation

ringabout
Copy link
Member

@ringabout ringabout commented Feb 5, 2024

follow up #23013

fixes #22852
fixes #23435
fixes #23645

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 ringabout changed the title fixes #22852; SIGSEGV when slicing string or seq[T] with index out of… fixes #22852; SIGSEGV when slicing string or seq[T] with index out of range Feb 5, 2024
ringabout added a commit that referenced this pull request Mar 25, 2024
@ringabout ringabout changed the title fixes #22852; SIGSEGV when slicing string or seq[T] with index out of range fixes #22852; fixes #23435; SIGSEGV when slicing string or seq[T] with index out of range Mar 25, 2024
Araq pushed a commit that referenced this pull request Apr 18, 2024
@ringabout ringabout changed the title fixes #22852; fixes #23435; SIGSEGV when slicing string or seq[T] with index out of range fixes #22852; fixes #23435; fixes #23645; SIGSEGV when slicing string or seq[T] with index out of range May 27, 2024
@Araq Araq added merge_when_passes_CI mergeable once green Showstopper labels May 27, 2024
@Araq Araq merged commit c615828 into devel May 27, 2024
@Araq Araq deleted the pr_defect_range_check branch May 27, 2024 12:13
Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from c615828

Hint: mm: orc; opt: speed; options: -d:release
178579 lines; 8.433s; 753.109MiB peakmem

ringabout added a commit that referenced this pull request May 27, 2024
narimiran pushed a commit that referenced this pull request Sep 13, 2024
… or seq[T] with index out of range (#23279)

follow up #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]
```

(cherry picked from commit c615828)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

2 participants