Subject: Re: lib/19638: isalpha (3) bug
To: Mike Cheponis <mac@Wireless.Com>
From: Dave Huang <khym@azeotrope.org>
List: netbsd-bugs
Date: 01/03/2003 19:39:48
On Fri, Jan 03, 2003 at 05:03:54PM -0800, Mike Cheponis wrote:
> It's hard enough to write robust code in C, why have libc make it even
> harder?

I still don't think I've heard why you're passing these weird values
to isalpha() in the first place... you mentioned you were using
rand() or random()--why are you passing random numbers to isalpha()?

Personally, if a program I write ever passes something completely off 
the wall like 152983757 to isalpha(), I'd _like_ it to tell me somehow 
(SIGSEGV is fine, abort() is good too), since I'm certainly not 
intending to do it. There's a bug in my program I need to fix, and
a core dump will help me track down where it is.
-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 27 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++