Subject: Re: lib/19638: isalpha (3) bug
To: Mike Cheponis <mac@Wireless.Com>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 01/03/2003 19:38:25
>> > > >     Feeding a routine in libc a perfectly valid int should NOT
>> > > >     cause the libc routine to segfault.  That is Bad.
>
>> This is totally bogus argument. Please, show me an *invalid* int.
>
>Precisely!

feeding 135471234 to isalpha() and expecting a sensible result is like
feeding 135471234 to asin() and expecting a sensible result or like
calling fprintf() with NULL for the fp.  all those inputs are outside
the proscribed domains of the functions.  how a program handles that
is not defined by any standard.  it is up to the program to make sure
that it does not exceed the domain of a function, not the system.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."