Skip to content

Conversation

xdBronch
Copy link
Contributor

fixes #22398
wasnt sure if/how this should be tested, please lmk!

@alexrp alexrp requested a review from mlugg September 10, 2025 19:59
@@ -32132,7 +32138,8 @@ fn analyzeSlice(
else
end;

try sema.addSafetyCheckIndexOob(block, src, actual_end, actual_len, .cmp_lte);
if (try sema.resolveDefinedValue(block, src, actual_end) == null)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not gonna push for now since multiple things may be wrong, changing this to actual_len seems to fix what the CI is failing on. is that correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

impossible outOfBounds and startGreaterThanEnd safety checks emitted for slicing many-pointers
1 participant