Package: isync
Version: 1.3.0-2.1
Severity: normal
Dear Maintainer,
if a maildir path contains a recursive symlink, mbsync does not detect
recursion but aborts with
Fatal: buffer too small. Please report a bug.
A run inside gdb reveals:
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff788f55b in __GI_abort () at abort.c:79
#2 0x0000555555562656 in oob () at util.c:334
#3 0x000055555556287a in nfsnprintf (buf=buf@entry=0x7fffffffd684
".uidvalidit", blen=blen@entry=12, fmt=fmt@entry=0x555555576118 "%s") at
util.c:345
#4 0x000055555556e112 in maildir_list_recurse (ctx=ctx@entry=0x5555555810e0,
isBox=isBox@entry=33, inbox=inbox@entry=0x555555580a90 "/home/nicolas/Maildir",
inboxLen=inboxLen@entry=21, basePath=basePath@entry=0x0,
basePathLen=basePathLen@entry=0,
path=0x7fffffffd590
"/home/nicolas/Mail/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/I"...,
pathLen=244,
name=0x7fffffffd690
"Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/Inbox/notes/Sonstige"...,
nameLen=225, flags=<optimized out>) at drv_maildir.c:413
...
A recursive symlink (here: Inbox -> ".") might be considered bad
practise. But perhaps a recursion detection is more user-friendly?
Kind regards,
Nicolas
-- System Information:
Debian Release: 11.0
APT prefers testing-security
APT policy: (500, 'testing-security'), (500, 'unstable'), (500, 'testing'),
(500, 'stable'), (1, 'experimental')
Architecture: arm64 (aarch64)
Kernel: Linux 5.10.0-6-arm64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages isync depends on:
ii libc6 2.31-11
ii libdb5.3 5.3.28+dfsg1-0.8
ii libsasl2-2 2.1.27+dfsg-2.1
ii libssl1.1 1.1.1k-1
ii zlib1g 1:1.2.11.dfsg-2
isync recommends no packages.
Versions of packages isync suggests:
ii mutt 2.0.5-4
-- no debconf information