• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange Warning Message from the Analyzer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Warning Message from the Analyzer?


  • Subject: Re: Strange Warning Message from the Analyzer?
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 09 Jun 2015 16:51:01 +0000

On Jun 9, 2015, at 06:54 , Dave <email@hidden> wrote:
>
> the thing is that malloc should never return NULL

On Jun 9, 2015, at 09:25 , Jens Alfke <email@hidden> wrote:
>
> But the C standard says malloc can return NULL if it can’t allocate the block, and there are many ways that can happen:

I might be misremembering, but I think this has come up before, and one other way is that malloc is allowed to return NULL if the requested size is 0. (Whether or not it does so is standard-library-implementation-dependent.)



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Strange Warning Message from the Analyzer?
      • From: Jens Alfke <email@hidden>
References: 
 >Strange Warning Message from the Analyzer? (From: Dave <email@hidden>)
 >Re: Strange Warning Message from the Analyzer? (From: Steve Mills <email@hidden>)
 >Re: Strange Warning Message from the Analyzer? (From: Dave <email@hidden>)

  • Prev by Date: Re: Strange Warning Message from the Analyzer?
  • Next by Date: Re: Strange Warning Message from the Analyzer?
  • Previous by thread: Re: Strange Warning Message from the Analyzer?
  • Next by thread: Re: Strange Warning Message from the Analyzer?
  • Index(es):
    • Date
    • Thread