Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-14

Validate pointers before use - review code and fix

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • M0.3
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            samisa Don Samisa Abeysinghe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: