id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
1000,[PATCH] Google calendar segfault on 64bit archs,gebart,savago,"I was getting a weird segfault at random times when syncing with google calendar on my x86_64 machine.
It turns out the problem was that the pointer returned from osync_xmlformat_parse was being truncated to 32 bit and then sign extended back to 64 bit, which of course works whenever the pointer happened to be in the interval <=0x7fffffff.
The solution was to add
 
{{{
#include <opensync/opensync-xmlformat.h>
}}}

to gcalendar.c

More information about this problem in general can be found here:
http://www.navo.hpc.mil/usersupport/IBM/XLC/compiler/ref/rucl64mg.htm#Undeclared
The information in that paragraph applies to gcc even though it is written for some other compiler.

I've still haven't gotten it to sync correctly as it now breaks at an assert about unsorted xml, I believe it is related to ticket #923. I'm currently researching this and I'll supply another patch if I find the cause of it.",defect,closed,normal,,Plugin: google,0.38,major,fixed,64bit amd64 segfault x86_64,
