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 localedata/12545] New: [PATCH] localedef: fix error check for size_t < 0


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.


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