This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13936] New: Potential NULL pointer dereference
- From: "xu_zhong_xing at 163 dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Mon, 02 Apr 2012 14:55:11 +0000
- Subject: [Bug libc/13936] New: Potential NULL pointer dereference
- Auto-submitted: auto-generated
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.