Package: isync Version: 1.0.4-2.1+b1 Severity: normal Hello
mbsync stopped working for me this week-end with an "IMAP error: unexpected tag" error. I tracked down the issue to a call to memcpy with no check on potential overlaps. It appears this bug was corrected in 2006: http://isync.git.sourceforge.net/git/gitweb.cgi?p=isync/isync;a=commitdiff;h=617d1a6e4983a6c0903b46652ee502a804a312ee -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (50, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.36-xenU-4814-i386 (SMP w/1 CPU core) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages isync depends on: ii libc6 2.13-21 ii libdb5.1 5.1.25-11 ii libssl1.0.0 1.0.0e-2 isync recommends no packages. Versions of packages isync suggests: pn mutt <none> -- no debconf information
Fix potential overlap in memcpy See http://isync.git.sourceforge.net/git/gitweb.cgi?p=isync/isync;a=commitdiff;h=617d1a6e4983a6c0903b46652ee502a804a312ee --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -376,7 +376,7 @@ n = b->bytes - start; if (n) - memcpy( b->buf, b->buf + start, n ); + memmove( b->buf, b->buf + start, n ); b->offset -= start; b->bytes = n; start = 0;