You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucy.apache.org by "Nick Wellnhofer (JIRA)" <ji...@apache.org> on 2016/04/09 15:29:25 UTC

[lucy-issues] [jira] [Resolved] (CLOWNFISH-90) Unsafe usage of ctype.h functions

     [ https://issues.apache.org/jira/browse/CLOWNFISH-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Wellnhofer resolved CLOWNFISH-90.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.6.0

Fixed with the following merge:

https://git-wip-us.apache.org/repos/asf?p=lucy-clownfish.git;a=commit;h=e4a94bca5510dd5e11876de3a3918f7d0b7073cd

> 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
>             Fix For: 0.6.0
>
>
> 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)