You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Supun Kamburugamuva (JIRA)" <ji...@apache.org> on 2008/07/22 06:24:31 UTC

[jira] Resolved: (AXIS2C-1238) size_t less than zero comparison

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

Supun Kamburugamuva resolved AXIS2C-1238.
-----------------------------------------

    Resolution: Fixed

Fixed issue in the trunk.

> size_t less than zero comparison
> --------------------------------
>
>                 Key: AXIS2C-1238
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1238
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>    Affects Versions: 1.4.0
>         Environment: Linux Suse9, x86
>            Reporter: Leonardo Kausilas
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> In function guththila_next_char (guththila/src/guththila_xml_parser.c), the result value from guththila_reader_read is stored in a size_t temp var and then is compared to greater than zero (line 1598), but size_t is unsigned in ansi C. Therefore, -1 condition is never true and a core dump occurs. If the result value of guththila_reader_read is stored in a int var, the bug is fixed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org