This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug localedata/12545] New: [PATCH] localedef: fix error check for size_t < 0
- From: "nikai at nikai dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 5 Mar 2011 10:08:00 +0000
- Subject: [Bug localedata/12545] New: [PATCH] localedef: fix error check for size_t < 0
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12545
Summary: [PATCH] localedef: fix error check for size_t < 0
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: localedata
AssignedTo: libc-locales@sources.redhat.com
ReportedBy: nikai@nikai.net
Created attachment 5274
--> http://sourceware.org/bugzilla/attachment.cgi?id=5274
patch
'n' is unsigned of type size_t, and can't be negative.
The assigned asprintf() returns int, and -1 on error.
For checking n < 0, 'n' needs to be of a signed type.
--
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.