Skip to content
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

Static analyzer cherrypicks 7 #512

Merged

Conversation

haoNoQ
Copy link

@haoNoQ haoNoQ commented Dec 20, 2019

Clang Static Analyzer is traditionally kept reasonably fresh on stable branches through continuous cherry-picking.

boga95 and others added 6 commits December 19, 2019 16:51
This patch introduces the namespaces for the configured functions and
also enables the use of the member functions.

I added an optional Scope field for every configured function. Functions
without Scope match for every function regardless of the namespace.
Functions with Scope will match if the full name of the function starts
with the Scope.
Multiple functions can exist with the same name.

Differential Revision: https://reviews.llvm.org/D70878

(cherry picked from commit 273e674)
… the Store.

This canonicalizes the representation of unknown pointer symbols,
which reduces the overall confusion in pointer cast representation.

Patch by Vince Bridgers!

Differential Revision: https://reviews.llvm.org/D70836

(cherry picked from commit 6d3f43e)
It's a singleton in CoreFoundation that always contains a non-null CFNullRef.

(cherry picked from commit badba51)
…llocator.

MallocChecker warns when memory is passed into -[NSData initWithBytesNoCopy]
but isn't allocated by malloc(), because it will be deallocated by free().
However, initWithBytesNoCopy has an overload that takes an arbitrary block
for deallocating the object. If such overload is used, it is no longer
necessary to make sure that the memory is allocated by malloc().

(cherry picked from commit bce1cce)
…he Store.

Canonicalization was accidentally omitted in 6d3f43e.

(cherry picked from commit f0ced2d)
Method '-[NSCoder decodeValueOfObjCType:at:]' is not only deprecated
but also a security hazard, hence a loud check.

Differential Revision: https://reviews.llvm.org/D71728

(cherry picked from commit b284005)
@haoNoQ
Copy link
Author

haoNoQ commented Dec 20, 2019

@swift-ci test

@haoNoQ haoNoQ merged commit dc34e57 into swiftlang:apple/stable/20190619 Dec 20, 2019
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