Subject: Re: nasty bug in bsearch()
From: [email-masked] (Geoffrey Noer)

21 Jul 1997 18:22:12 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Content-Type: text
Original-To: [email-masked] (Mumit Khan)
Original-Cc: [email-masked], [email-masked]
In-Reply-To: <[email-masked]> from "Mumit Khan" at Mar 25, 97 00:27:39 am
X-Mailer: ELM [version 2.4 PL23]
Original-Sender: [email-masked]

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
[email-masked]
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".