bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segmentation fault//memcpy misuse with command options (partial fix


From: Joshua Moore-Oliva
Subject: Re: Segmentation fault//memcpy misuse with command options (partial fix patch included)
Date: Sun, 11 Apr 2004 18:29:51 -0400
User-agent: KMail/1.6.1

Well..  I don't want to sound haughty but I have no idea how this library 
works...  I just ran into this problem and submitted a bug report.

I don't know enough about the lib to fix it...  

Joshua Moore-Oliva

On April 10, 2004 5:58 am, you wrote:
> My first thought is that most of these operations depend on getLength 
> returning the correct string length (in effect strlen() + 1 null byte).  
> However, the String class actually stores a length field, which is what 
> getLength() actually returns, and maybe that length field is not being kept 
> in sync with the actual string length in some circumstances!  It would be 
> interesting to compare the length returned by getLength with the length 
> returned by strlen() in front of each of these memmove's...
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]