public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10571] New: strtol() cutoff range cause premature overflow
@ 2009-08-28 14:34 shihjong dot kuo at intel dot com
2009-08-28 20:46 ` [Bug libc/10571] " drepper at redhat dot com
2009-10-30 4:42 ` drepper at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: shihjong dot kuo at intel dot com @ 2009-08-28 14:34 UTC (permalink / raw)
To: glibc-bugs
I noticed premature overflow due cutoff range value set in strtol_l.c for long
string and using a number of base values. strtol() reported overflowed value
while the string should have been valid. The cutoff values I saw were
0x55555555_55555555 for base=3, 0x3fffffff_ffffffff for base=4,
0x33333333_33333333 for base=5, 0x2aaaaaaa_aaaaaaaa for base=6 with glibc 2.9.
2.10 looks to use the same macro definition for the cutoff table definition.
It seems to me the cutoff value need not be a table with different ranges that
vary with base value, why not just a simple constant 0x7fffffff_ffffffff for
all base values?
--
Summary: strtol() cutoff range cause premature overflow
Product: glibc
Version: 2.9
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: shihjong dot kuo at intel dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10571
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/10571] strtol() cutoff range cause premature overflow
2009-08-28 14:34 [Bug libc/10571] New: strtol() cutoff range cause premature overflow shihjong dot kuo at intel dot com
@ 2009-08-28 20:46 ` drepper at redhat dot com
2009-10-30 4:42 ` drepper at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2009-08-28 20:46 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2009-08-28 20:46 -------
There are no known problems. You have to provide a self-contained test.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=10571
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/10571] strtol() cutoff range cause premature overflow
2009-08-28 14:34 [Bug libc/10571] New: strtol() cutoff range cause premature overflow shihjong dot kuo at intel dot com
2009-08-28 20:46 ` [Bug libc/10571] " drepper at redhat dot com
@ 2009-10-30 4:42 ` drepper at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2009-10-30 4:42 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2009-10-30 04:42 -------
No reply in two months. Closing. Reopen only with a test case.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |WORKSFORME
http://sourceware.org/bugzilla/show_bug.cgi?id=10571
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-10-30 4:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-28 14:34 [Bug libc/10571] New: strtol() cutoff range cause premature overflow shihjong dot kuo at intel dot com
2009-08-28 20:46 ` [Bug libc/10571] " drepper at redhat dot com
2009-10-30 4:42 ` drepper 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).