size_t-Bug in IconvGNUWrapper
-----------------------------

                 Key: XERCESC-1782
                 URL: https://issues.apache.org/jira/browse/XERCESC-1782
             Project: Xerces-C++
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.7.0
            Reporter: Florian Bous


In IconvGNUTransService.cpp there are two cases where addresses of unsigned 
int-variables are casted to size_t *, and handed over to a 
IconvGNUWrapper::iconvTo.
IconvGNUWrapper::iconvTo in turn calls ::iconvTo.
In our environment, where size_t is not the same as unsigned int, this call 
crashes fatally with a signal.
When I copy the unsigned int-variables to size_t-variables and call 
IconvGNUWrapper::iconvTo with the addresses of the size_t-variables, everything 
works fine.

In both cases, the unsigned int-variables are called wLent. The first such 
occurence is in IconvGNULCPTranscoder::transcode(const XMLCh* const), the 
second in IconvGNULCPTranscoder::transcode(const XMLCh* const, MemoryManager* 
const).

We use Version 2.7, but as far as I could see, the bug was still there in 2.8 - 
the latest version I had a look at.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to