|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: [Patch:] restore the native use of isdigit() instead of ap_isdigit() in httpd.
From: Theo de Raadt (deraadt
cvs.openbsd.org)
Date: Thu Mar 30 2006 - 17:47:29 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > Hmmm. The isdigit man page from the Single Unix Specification on the
> > Open Groups' web site (www.unix.org) declares isdigit as follows:
> >
> > #include <ctype.h>
> >
> > int isdigit(int c);
> >
> > This documentation for the isdigit interface would appear to allow
> > the parameter to be a char since chars can certainly be cast to ints
> > without any loss of information.
>
> Please read the *full* description, especially the following:
> The c argument is an int, the value of which the application shall
> ensure is a character representable as an unsigned char or equal to
> the value of the macro EOF. If the argument has any other value, the
> behavior is undefined.
And if you are not angry by the time you read to the end of this, then
you don't understand the full consequences of the horrid place we have
ended up in.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]