Unix Technical Forum

Re: [Patch:] restore the native use of isdigit() instead of ap_isdigit() in httpd.

This is a discussion on Re: [Patch:] restore the native use of isdigit() instead of ap_isdigit() in httpd. within the lucky.openbsd.tech forums, part of the OpenBSD category; --> I resisted the temptation to add "Blech!" to the end of my last note. Sigh. -Danny P.S. Sorry to ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 12:16 PM
Daniel Boulet
 
Posts: n/a
Default Re: [Patch:] restore the native use of isdigit() instead of ap_isdigit() in httpd.

I resisted the temptation to add "Blech!" to the end of my last note.

Sigh.

-Danny

P.S. Sorry to pollute this thread with this language-lawyer
nonsense. I'm done now. Please carry on with the "regularly
scheduled programming".

On 30-Mar-2006, at 4:47 PM, Theo de Raadt wrote:

>>> 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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:40 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com