Bug#300242: librra0: deadlock on unexpected escape

2005-03-18 Thread Xavier Bestel
Package: librra0
Version: 0.9.0-2
Severity: important
Tags: patch


I have setup an Evolution2/SynCE pair with multisync, but somehow
Evolution had some entries ending with a '\' character. The problem is
that librra then deadlock around contact.c:670.
Here is a fix for that problem (note that you can't do source+=2
otherwise you skip the EOS char) :

--- lib/contact.c.orig  2005-03-18 14:49:45.0 +0100
+++ lib/contact.c   2005-03-18 15:06:57.0 +0100
@@ -668,6 +668,7 @@ static void unescape_string(char* value)

default:
synce_warning(Unexpected escape: 
'%c%c', source[0], source[1]);
+   source++;
break;
}
}


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686-smp
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages librra0 depends on:
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libmimedir  0.4-2A library to parse RFC 2425 Direct
ii  librapi20.9.0-6  Make RAPI calls to a WinCE device,
ii  libsynce0   0.9.0-3  A helper library for synce, a tool

-- no debconf information





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#300242: librra0: deadlock on unexpected escape

2005-03-18 Thread Volker Christian
Thank you for your report and patch. Nevertheless, this was a known problem 
which is already fixed in cvs.
I will prepare a fixed debian package soon.

regards
voc


On Friday 18 March 2005 15:21, Xavier Bestel wrote:
 Package: librra0
 Version: 0.9.0-2
 Severity: important
 Tags: patch


 I have setup an Evolution2/SynCE pair with multisync, but somehow
 Evolution had some entries ending with a '\' character. The problem is
 that librra then deadlock around contact.c:670.
 Here is a fix for that problem (note that you can't do source+=2
 otherwise you skip the EOS char) :

 --- lib/contact.c.orig  2005-03-18 14:49:45.0 +0100
 +++ lib/contact.c   2005-03-18 15:06:57.0 +0100
 @@ -668,6 +668,7 @@ static void unescape_string(char* value)

 default:
 synce_warning(Unexpected escape:
 '%c%c', source[0], source[1]); +  
 source++;
 break;
 }
 }


 -- System Information:
 Debian Release: 3.1
   APT prefers unstable
   APT policy: (500, 'unstable'), (1, 'experimental')
 Architecture: i386 (i686)
 Kernel: Linux 2.6.10-1-686-smp
 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

 Versions of packages librra0 depends on:
 ii  libc6   2.3.2.ds1-20 GNU C Library: Shared
 libraries an ii  libmimedir  0.4-2A library to
 parse RFC 2425 Direct ii  librapi20.9.0-6  Make
 RAPI calls to a WinCE device, ii  libsynce0   0.9.0-3 
 A helper library for synce, a tool

 -- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]