This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2753] New: Integer overflow in bsearch
- From: "greenrd at greenrd dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Jun 2006 20:38:47 -0000
- Subject: [Bug libc/2753] New: Integer overflow in bsearch
- Reply-to: sourceware-bugzilla at sourceware dot org
In the code for bsearch, if l and u are both very, very large, this line in
libc/stdlib/bsearch.c calculates the midpoint incorrectly due to an integer
overflow:
idx = (l + u) / 2;
--
Summary: Integer overflow in bsearch
Product: glibc
Version: 2.4
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: greenrd at greenrd dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2753
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.