From: noer@cygnus.com (Geoffrey Noer)
Subject: Re: nasty bug in bsearch()
21 Jul 1997 18:22:12 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <199707220046.RAA06184.cygnus.gnu-win32@cirdan.cygnus.com>
Content-Type: text
Original-To: khan@xraylith.wisc.edu (Mumit Khan)
Original-Cc: gnu-win32@cygnus.com, noer@cygnus.com
In-Reply-To: <9703250627.AA12477@modi.xraylith.wisc.edu> from "Mumit Khan" at Mar 25, 97 00:27:39 am
X-Mailer: ELM [version 2.4 PL23]
Original-Sender: owner-gnu-win32@cygnus.com

Mumit Khan wrote a very long time ago:
> 
> I believe there is a nasty bug in bsearch that gets tickled whenever the
> item to be searched for is "greater" than the last item in the list
> supplied. Take the following trivial code:
[...]

This will be fixed in the next release.  I just rewrote
newlib/libc/stdlib/bsearch.c using a better algorithm.

-- 
Geoffrey Noer
noer@cygnus.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
