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 "Robert Schweikert (JIRA)" <ji...@apache.org> on 2012/04/26 17:58:15 UTC

[jira] [Updated] (AXIS2C-1589) Code base does not build with gcc 4.7 due to potential use of uninitialized array

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

Robert Schweikert updated AXIS2C-1589:
--------------------------------------

    Attachment: axis2c_initializeArray.patch

This patch addressess the problem.
                
> Code base does not build with gcc 4.7 due to potential use of uninitialized array
> ---------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1589
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1589
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: 1.6.0
>         Environment: openSUSE_Factory as of 04/21/12
>            Reporter: Robert Schweikert
>         Attachments: axis2c_initializeArray.patch
>
>
> axiom/src/xpath/xpath_internals_engine.c
> defines the n_nodes array, but leaves it uninitialized. Values are set in a loop but are guarded by an if block. Thus the array may be uninitialized. Later on the array is used.
> In gcc 4.7 this condition is detected and when building with warnings treated as errors the build fails.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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