-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix illegal stream content access through invalid view.
When a view's beginning ended up outside of the stream's valid range (e.g., because the stream has been trimmed in the meantime), we wouldn't catch that on access and attempt to access data that was no longer valid. This commit extends the safety checks accordingly. Closes #1795.
- Loading branch information
Showing
9 changed files
with
247 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. | ||
[spicy] Test::Messages | ||
[spicy] Test::Message | ||
[spicy] len = 8 | ||
[spicy] Test::TryInner | ||
[spicy] Test::Inner | ||
[spicy] len = 157 | ||
[spicy] magic = \\x91 | ||
[spicy] _anon = [$len=157, $magic=b"\\x91"] | ||
[spicy] Test::TryInner | ||
[spicy] Test::Inner | ||
[spicy] len = 93 | ||
[spicy] magic = | ||
[spicy] _anon = [$len=93, $magic=b""] | ||
[spicy] Test::TryInner | ||
[spicy] Test::Inner | ||
[spicy] len = 46 | ||
[spicy] magic = \\xd8 | ||
[spicy] _anon = [$len=46, $magic=b"\\xd8"] | ||
[spicy] Test::TryInner | ||
[spicy] Test::Inner | ||
[spicy] len = 34 | ||
[spicy] magic = n | ||
[spicy] _anon = [$len=34, $magic=b"n"] | ||
[spicy] Test::TryInner | ||
[spicy] Test::Inner | ||
[spicy] len = 11 | ||
[spicy] magic = o\\xeb | ||
[spicy] _anon = [$len=11, $magic=b"o\\xeb"] | ||
[spicy] _anon_2 = [[], [], [], [], []] | ||
[spicy] Test::Message | ||
[error] terminating with uncaught exception of type hilti::rt::InvalidIterator: view starts before available range (<...>/size-inside-size.spicy:18:8-18:12) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
tests/Baseline/spicy.types.unit.synchronize-on-gap/gap_while_matching.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.