Skip to content

Conversation

@delcypher
Copy link

In #11645 test cases combining -fbounds-safety trap mode with UBSan in trapping mode. The generated IR includes a global string array that contains an absolute file path. The test case was previously manually patched so that any path would match to make the test case portable.

However, the length of the constant array was not changed which still meant the test wasn't portable. This fixes that by allowing any length for the global arrays

rdar://158088757

In swiftlang#11645 test cases combining `-fbounds-safety` trap mode with UBSan in
trapping mode. The generated IR includes a global string array that
contains  an absolute file path. The test case was previously manually
patched so that any path would match to make the test case portable.

However, the length of the constant array was not changed which still
meant the test wasn't portable. This fixes that by allowing any length
for the global arrays

rdar://158088757
@delcypher delcypher self-assigned this Oct 23, 2025
@delcypher delcypher added the clang:bounds-safety Issue relating to the experimental -fbounds-safety feature in Clang label Oct 23, 2025
@delcypher delcypher merged commit 251a2e7 into swiftlang:next Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:bounds-safety Issue relating to the experimental -fbounds-safety feature in Clang

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant