public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/12900] New: regoff_t definition is wrong on 64-bit machines
@ 2011-06-16 17:12 bugdal at aerifal dot cx
  2011-06-17 10:42 ` [Bug regex/12900] " bonzini at gnu dot org
  2014-06-27 13:07 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: bugdal at aerifal dot cx @ 2011-06-16 17:12 UTC (permalink / raw)
  To: glibc-bugs-regex

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug regex/12900] regoff_t definition is wrong on 64-bit machines
  2011-06-16 17:12 [Bug regex/12900] New: regoff_t definition is wrong on 64-bit machines bugdal at aerifal dot cx
@ 2011-06-17 10:42 ` bonzini at gnu dot org
  2014-06-27 13:07 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: bonzini at gnu dot org @ 2011-06-17 10:42 UTC (permalink / raw)
  To: glibc-bugs-regex

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

Paolo Bonzini <bonzini at gnu dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bonzini at gnu dot org
         Resolution|                            |DUPLICATE

--- Comment #1 from Paolo Bonzini <bonzini at gnu dot org> 2011-06-17 10:41:59 UTC ---
duplicate.

*** This bug has been marked as a duplicate of bug 5945 ***

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug regex/12900] regoff_t definition is wrong on 64-bit machines
  2011-06-16 17:12 [Bug regex/12900] New: regoff_t definition is wrong on 64-bit machines bugdal at aerifal dot cx
  2011-06-17 10:42 ` [Bug regex/12900] " bonzini at gnu dot org
@ 2014-06-27 13:07 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 13:07 UTC (permalink / raw)
  To: glibc-bugs-regex

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-27 13:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 17:12 [Bug regex/12900] New: regoff_t definition is wrong on 64-bit machines bugdal at aerifal dot cx
2011-06-17 10:42 ` [Bug regex/12900] " bonzini at gnu dot org
2014-06-27 13:07 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).