This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: nasty bug in bsearch()
- To: khan at xraylith dot wisc dot edu (Mumit Khan)
- Subject: Re: nasty bug in bsearch()
- From: Geoffrey Noer <noer at cygnus dot com>
- Date: Mon, 21 Jul 1997 17:46:45 -0700 (PDT)
- Cc: gnu-win32 at cygnus dot com, noer at cygnus dot 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".