Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-343

SIGSEGV deserializing an array of complex elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4 Final
    • 1.6 Alpha
    • Serialization
    • None
    • RH9

    Description

      The function Axis_Create_* (in the following example, the mapItem
      object) in the stubs generated by wsdl2ws java tool generates a SIGSEGV
      when tring to enlarge an array of objects

      mapItem* pNew = new mapItem[nSize];
      memcpy(pNew, pObj, sizeof(mapItem)*nSize/2);
      memset(pObj, 0, sizeof(mapItem)*nSize/2);
      -> delete [] pObj; <- SIGSEGV

      memset clears the virtual table pointer of the mapItem objects and the delete operator crash.

      Attachments

        1. siaam.wsdl
          4 kB
          Unai Uribarri

        Activity

          People

            amra Nadir Amra
            unaiur Unai Uribarri
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: