Skip to content

Patch Out Use-Of-Stack-After-Free In Cross Module Dependencies #34218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Oct 7, 2020

The fake job is entered into the map to satisfy the tracing machinery.
When that same machinery kicks into gear to print out paths, lookups
into the dictionary will access data has gone out of scope.

For now, cut off the read. There will be another refactoring patch that
keeps these temporaries out of the Driver's data structures entirely.

rdar://70053563

The fake job is entered into the map to satisfy the tracing machinery.
When that same machinery kicks into gear to print out paths, lookups
into the dictionary will access data has gone out of scope.

For now, cut off the read. There will be another refactoring patch that
keeps these temporaries out of the Driver's data structures entirely.

rdar://70053563
@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 7, 2020

@swift-ci asan test

@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 7, 2020

@swift-ci smoke test

@eeckstein eeckstein merged commit d70f35d into swiftlang:main Oct 7, 2020
@CodaFi CodaFi deleted the pseudo-lithis branch October 7, 2020 17:28
CodaFi added a commit to CodaFi/swift that referenced this pull request Oct 7, 2020
A more durable form of swiftlang#34218. Keep a side cache of externally-dependent
jobs for now. This ensures our pseudo-Jobs don't get prematurely
deallocated before the tracing machinery has had a chance to report the
structure of the Job graph.

rdar://70053563
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.

2 participants