Objective-C : Incorrect reference counter decrement
Classification
Overview
Reference counter is being incorrectly reduced for an object, which the caller no longer owns. This may lead to incorrect behavior or crash of the application.
Objective C uses the standard mechanism of reference counting: every created object that inherits NSObject/NSProxy has an internal reference counter that after creation is set equal to one. To increase the reference count on the object call the retain and to decrement the reference count call the release. Once the reference count reaches 0, object is deallocated. Calling the release for the object, which the caller no longer owns, may lead to undefined behavior.
DerScanner Severity Score
Check your Objective-C code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
