axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Mitchell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2C-812) guththila parser fails attempting to deallocate unallocated cell if xml message contains more than one namespace
Date Thu, 13 Dec 2007 23:24:43 GMT

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

Bill Mitchell updated AXIS2C-812:
---------------------------------

    Attachment: guththila_xml_parser_diff_2

In chasing another guththila parser issue, I discovered that my original source fix was not
quite ideal in handling the case of a memory allocation failure for the namespace block. 
This new version, ..._diff_2, is slightly better and should be considered a replacement for
the original diff.

> guththila parser fails attempting to deallocate unallocated cell if xml message contains
more than one namespace
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-812
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-812
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: guththila
>    Affects Versions: Current (Nightly)
>         Environment: Windows, Visual Studio 2005, guththila validating parser
>            Reporter: Bill Mitchell
>         Attachments: guththila_xml_parser_diff, guththila_xml_parser_diff_2
>
>
> The guththila validating parser fails attempting to deallocate an unallocated cell if
the xml message constains more than one namespace.  The issue is that the validating parser
allocates one cell of memory to hold an array of namespaces, but that the code that frees
the namespaces believes that each array element is a separate cell.  Thus, if the array contains
more than one element, the free of the second element fails.  
> One can see the problem when parsing a SOAP response message identifying two namespaces,
e.g., one that begins:
> <?xml version="1.0" encoding="UTF-8" ?> 
> - <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> - <env:Body>
> ...
> This appears to be a problem introduced as part of fix AXIS2C-785 since 1.1.0 in the
development branch; in 1.1.0 the array was not freed at all.   

-- 
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


Mime
View raw message