MKNetworkKit icon indicating copy to clipboard operation
MKNetworkKit copied to clipboard

MKNetworkEngine -imageAtURL: completionHandler: errorHandler: does not check that its block parameters are defined before invoking them

Open jdjennin opened this issue 11 years ago • 0 comments

imageaturl

This code generates an EXC_BAD_ACCESS crash due to the lack of surrounding if-statements of the form

if (imageFetchedBlock) imageFetchedBlock([completedOperation responseImage], ...

and

if (errorBlock) errorBlock(completedOperation, error);

jdjennin avatar Dec 04 '13 23:12 jdjennin