Nick Wellnhofer created CLOWNFISH-90:
----------------------------------------

             Summary: Unsafe usage of ctype.h functions
                 Key: CLOWNFISH-90
                 URL: https://issues.apache.org/jira/browse/CLOWNFISH-90
             Project: Apache Lucy-Clownfish
          Issue Type: Bug
            Reporter: Nick Wellnhofer
            Assignee: Nick Wellnhofer


>From the C99 spec:

{quote}
The header <ctype.h> declares several functions useful for classifying and 
mapping characters. In all cases the argument is an int, the value of which 
shall be representable as an unsigned char or shall equal the value of the 
macro EOF. If the argument has any other value, the behavior is undefined.

The behavior of these functions is affected by the current locale.
{quote}

There are many cases where we pass unchecked {{char}} values which might be 
negative.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to