> On Jul 4, 2016, at 11:25 PM, Dmitry Markman <dmark...@mac.com> wrote: > > what was confusing that debug build isn’t failing, only release build of our > library crashes application
Does the real application make malloc calls of “ridiculous” sizes where malloc returns NULL? In that case the crash in the release build might have been because Clang decided to optimize away your tests for a NULL return value. In that case Clang’s optimizer is being wrong, but it’s probably best for you to preflight the size yourself and give up before calling malloc if the size is that big. —Jens
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com