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 "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2006/01/13 02:50:20 UTC

[jira] Created: (AXIS2C-14) Validate pointers before use - review code and fix

Validate pointers before use - review code and fix
--------------------------------------------------

         Key: AXIS2C-14
         URL: http://issues.apache.org/jira/browse/AXIS2C-14
     Project: Axis2-C
        Type: Bug
    Reporter: Samisa Abeysinghe
    Priority: Critical
     Fix For: M0.3


While doing integration testing, I came to notice that one of the key probloems causing the runtime crashes is the use of pointers without validating. 

It is a must that we init all pointers to NULL and also test the pointers before use to make sure they have valid content.
This was also mentioned in coding convention.

I think we have to review the code and fix, else the engine would crash unexpectedly and it would be hard to figure out the causes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2C-14) Validate pointers before use - review code and fix

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-14?page=comments#action_12362585 ] 

Samisa Abeysinghe commented on AXIS2C-14:
-----------------------------------------

It is worth having a look into the rules defined by Axis C++ project in AXISCPP-318

> Validate pointers before use - review code and fix
> --------------------------------------------------
>
>          Key: AXIS2C-14
>          URL: http://issues.apache.org/jira/browse/AXIS2C-14
>      Project: Axis2-C
>         Type: Bug
>     Reporter: Samisa Abeysinghe
>     Priority: Critical
>      Fix For: M0.3

>
> While doing integration testing, I came to notice that one of the key probloems causing the runtime crashes is the use of pointers without validating. 
> It is a must that we init all pointers to NULL and also test the pointers before use to make sure they have valid content.
> This was also mentioned in coding convention.
> I think we have to review the code and fix, else the engine would crash unexpectedly and it would be hard to figure out the causes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (AXIS2C-14) Validate pointers before use - review code and fix

Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-14?page=all ]
     
Samisa Abeysinghe closed AXIS2C-14:
-----------------------------------

    Resolution: Fixed

This has been fixed to a great extent during the integration effort.

> Validate pointers before use - review code and fix
> --------------------------------------------------
>
>          Key: AXIS2C-14
>          URL: http://issues.apache.org/jira/browse/AXIS2C-14
>      Project: Axis2-C
>         Type: Bug
>     Reporter: Samisa Abeysinghe
>     Priority: Critical
>      Fix For: M0.3

>
> While doing integration testing, I came to notice that one of the key probloems causing the runtime crashes is the use of pointers without validating. 
> It is a must that we init all pointers to NULL and also test the pointers before use to make sure they have valid content.
> This was also mentioned in coding convention.
> I think we have to review the code and fix, else the engine would crash unexpectedly and it would be hard to figure out the causes.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira