This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/13936] New: Potential NULL pointer dereference


http://sourceware.org/bugzilla/show_bug.cgi?id=13936

             Bug #: 13936
           Summary: Potential NULL pointer dereference
           Product: glibc
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: xu_zhong_xing@163.com
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


In file getopt.c

At line 523, longopts is checked for NULL.
But at line 940, p = longopts, p is used directly without checking.

Is this inconsistent?

I found this defect by my static analysis tool.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]