[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-dev
Subject:    [jira] Resolved: (XERCESC-1782) size_t-Bug in IconvGNUWrapper
From:       "Alberto Massari (JIRA)" <xerces-c-dev () xml ! apache ! org>
Date:       2008-02-20 11:24:44
Message-ID: 845962739.1203506684074.JavaMail.jira () brutus
[Download RAW message or body]


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

Alberto Massari resolved XERCESC-1782.
--------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.0.0)
         Assignee: Alberto Massari

Version 3.0 already used the size_t variable; fix is in the 2.9 branch

> 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
> Assignee: Alberto Massari
> Fix For: 2.9.0
> 
> 
> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic