delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/21/18:22:12

From: noer AT cygnus DOT com (Geoffrey Noer)
Subject: Re: nasty bug in bsearch()
21 Jul 1997 18:22:12 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <199707220046.RAA06184.cygnus.gnu-win32@cirdan.cygnus.com>
Original-To: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Original-Cc: gnu-win32 AT cygnus DOT com, noer AT cygnus DOT 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 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 AT cygnus DOT com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019