• 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
Still another static analyzer (and LLVM parser) mistake
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Still another static analyzer (and LLVM parser) mistake


  • Subject: Still another static analyzer (and LLVM parser) mistake
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 12 Jul 2010 17:16:51 -0700
  • Thread-topic: Still another static analyzer (and LLVM parser) mistake

There's no warning if you do this:

NSArray* arr = [NSArray arrayWithObjects: @"howdy"];

GCC's parser is smart enough to know that the missing nil terminator is just
asking for trouble.

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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: Still another static analyzer (and LLVM parser) mistake
      • From: "Sean McBride" <email@hidden>
    • Re: Still another static analyzer (and LLVM parser) mistake
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Another static analyzer mistake
  • Next by Date: Re: NSResizableWindowMask and view update
  • Previous by thread: Re: Another static analyzer mistake
  • Next by thread: Re: Still another static analyzer (and LLVM parser) mistake
  • Index(es):
    • Date
    • Thread