mbsync segfaults on a new sync
The following segfault happens on a new sync for me:
https://www.mail-archive.com/isync-devel@lists.sourceforge.net/msg04278.html
There's a fix:
https://www.mail-archive.com/isync-devel@lists.sourceforge.net/msg04279.html
that is reported to work:
https://www.mail-archive.com/isync-devel@lists.sourceforge.net/msg04280.html
I can confirm this fix works for me too:
diff '--color=auto' -Naur isync-1.4.4~/src/main.c isync-1.4.4/src/main.c
--- isync-1.4.4~/src/main.c 2021-12-03 11:56:16.000000000 +0100
+++ isync-1.4.4/src/main.c 2024-07-13 12:05:02.784354792 +0200
@@ -290,7 +290,8 @@
boxarr[num] = NULL;
}
}
- qsort( boxarr, num, sizeof(*boxarr), cmp_box_names );
+ if (boxarr)
+ qsort( boxarr, num, sizeof(*boxarr), cmp_box_names );
return boxarr;
}
As there's no plan to do a new release any time soon:
https://www.mail-archive.com/isync-devel@lists.sourceforge.net/msg04282.html
please consider picking this change for the package.
Thank you.