Skip to content

Conversation

@JDevlieghere
Copy link

Even if a file has a valid modification time, it's possible that reading the data fails. The SourceManager wasn't accounting for that, which would result in a crash due to an unchecked read from a null data_sp.

We were seeing the issue when trying to read from a buggy virtual file system, but presumably the same thing can happen with a poorly timed unmount of a drive.

rdar://166414707
(cherry picked from commit a73de98)

…m#174346)

Even if a file has a valid modification time, it's possible that reading
the data fails. The SourceManager wasn't accounting for that, which
would result in a crash due to an unchecked read from a null `data_sp`.

We were seeing the issue when trying to read from a buggy virtual file
system, but presumably the same thing can happen with a poorly timed
unmount of a drive.

rdar://166414707
(cherry picked from commit a73de98)
@JDevlieghere JDevlieghere requested a review from a team as a code owner January 5, 2026 18:20
@JDevlieghere
Copy link
Author

@swift-ci test

@JDevlieghere
Copy link
Author

@swift-ci test macos

@JDevlieghere JDevlieghere merged commit 0097c0d into swift/release/6.3 Jan 6, 2026
3 checks passed
@JDevlieghere JDevlieghere deleted the jdevlieghere/rdar/166414707 branch January 6, 2026 16:55
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.

3 participants