Skip to content

Fixes crash when DispatchData is created from an UnsafeBufferPointer<UInt8> with a nil address. Radar 29337927 #7194

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
Feb 2, 2017
Merged

Conversation

ktopley-apple
Copy link
Contributor

@ktopley-apple ktopley-apple commented Feb 2, 2017

Fixes crash when DispatchData is created from an UnsafeBufferPointer with a nil address.

Radar 29337927
rdar://problem/29337927

@ktopley-apple
Copy link
Contributor Author

@moiseev @mwwa @MadCoder @das please review

@moiseev
Copy link
Contributor

moiseev commented Feb 2, 2017

/cc @jrose-apple as radar originator.
Related change in corelibs: swiftlang/swift-corelibs-libdispatch#208

@moiseev
Copy link
Contributor

moiseev commented Feb 2, 2017

@swift-ci Please smoke test

@jrose-apple
Copy link
Contributor

LGTM. Thanks, Kim!

@ktopley-apple
Copy link
Contributor Author

Fixed merge problems.

@ktopley-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@moiseev moiseev merged commit 4854530 into swiftlang:master Feb 2, 2017
@ktopley-apple ktopley-apple deleted the dispatch-data-null-buffer branch February 3, 2017 22:31
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