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 regex/12900] New: regoff_t definition is wrong on 64-bit machines


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

           Summary: regoff_t definition is wrong on 64-bit machines
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: regex
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: bugdal@aerifal.cx


Per POSIX
(http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/regex.h.html):

The <regex.h> header shall define the regoff_t type as a signed integer type
that can hold the largest value that can be stored in either a ptrdiff_t type
or a ssize_t type.

glibc defines regoff_t as int, even on 64-bit machines. This is non-conformant
and prevents regex routines from handling large strings.

The only fix I can see is to change it to long (like it should have always
been) and bump the symbol version on 64-bit targets...

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