[LLVMbugs] [Bug 13131] New: warn on NULL as vararg argument

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jun 17 01:23:04 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13131

             Bug #: 13131
           Summary: warn on NULL as vararg argument
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Consider:

execl("/bin/true", "true", NULL);

We do not warn on this, but the code is broken if NULL is defined as 0. We
should warn whenever NULL is passed through a vararg (and expands to an
integer).

-- 
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