On Wed, Apr 15, 2009 at 09:11:01AM +0700, Robert Elz wrote:
> | The ctype functions are often implemented as #defines that index arrays,
> | so if the argument is 'char' it is very likely to index off the front
> | which leads to an unexpected result or core dump.
>
> Yes, the "undefine
Date:Wed, 15 Apr 2009 00:08:30 +0100
From:David Laight
Message-ID: <20090414230830.gc4...@snowdrop.l8s.co.uk>
| The ctype functions are often implemented as #defines that index arrays,
| so if the argument is 'char' it is very likely to index off the front
| whi
On Wed, Apr 15, 2009 at 01:38:02AM +0700, Robert Elz wrote:
>
> But since both you, and David, have commented on that issue, I took
> a look, and I certainly would not agree with "simply wrong". I might
> agree with "simply useless", after all, ctyoe.h has
>
> int toupper(int);
>
> so
Date:Tue, 14 Apr 2009 19:59:46 +0200
From:Joerg Sonnenberger
Message-ID: <20090414175946.ga12...@britannica.bec.de>
| toupper like the rest of ctype.h is defined for EOF and for all values
| of a unsigned char.
Yes. Which is why its arg cannot be u_char as you
On Wed, Apr 15, 2009 at 12:40:26AM +0700, Robert Elz wrote:
> If EOF is to be a valid parameter to toupper(), then the arg type
> cannot be u_char - however much you'd like it to be.
toupper like the rest of ctype.h is defined for EOF and for all values
of a unsigned char. unsigned char is by defi
On Wed, Apr 15, 2009 at 12:40:26AM +0700, Robert Elz wrote:
> Date:Tue, 14 Apr 2009 16:11:13 +0200
> From:Joerg Sonnenberger
> Message-ID: <20090414141113.gd...@britannica.bec.de>
>
> | toupper() gets u_char arguments, not int. This cast is simply wrong.
>
> Accord
Date:Tue, 14 Apr 2009 16:11:13 +0200
From:Joerg Sonnenberger
Message-ID: <20090414141113.gd...@britannica.bec.de>
| toupper() gets u_char arguments, not int. This cast is simply wrong.
According to TFM ...
SYNOPSIS
#include
int
toupper(int c);
an
On Tue, Apr 14, 2009 at 10:03:55AM +, Luke Mewburn wrote:
> Module Name: src
> Committed By: lukem
> Date: Tue Apr 14 10:03:55 UTC 2009
>
> Modified Files:
> src/crypto/dist/openssl/apps: ca.c
>
> Log Message:
> Call toupper() with an int argument.
toupper() gets u_char argume