[LLVMbugs] [Bug 7828] New: Check that all paths return the proper (unowned) retain count

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 5 11:18:05 PDT 2010


           Summary: Check that all paths return the proper (unowned)
                    retain count
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: tom+bugzilla at omnigroup.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=5332)
 --> (http://llvm.org/bugs/attachment.cgi?id=5332)
A .m file showing an undetected under retained return from a method.

If a method returns (implicitly or explicitly) NS_RETURNS_RETAINED, the checker
could check that the returned object has exactly one unowned retain.  For
example in the attached test case, if -[RandomResult godOnlyKnows] return NO,
we'll probably crash later on due to the missing retain.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list