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

Re: problems linking agains a shared library - maybe [OT] ?



Hi again,

I have traced down the problem, and I'll also mail the library's author.
The problem is not in the URL code per se, but in utils.cpp.
The compare() code temporarily truncates the longer string by assigning 
'\0' to one of its characters. This, together with the gcc optimizations 
causes a segfault, as the optimized string cannot be assigned to.
A temporary quick workaround is to allocate space dynmically within 
utils.cpp, but the longterm solution should change the way compare() works 
(it isn't too difficult to do, actually).

Please let me know if you have any comments..
   -Eyal


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il