[Users] [Bug 3009] New: "Rebuild folder tree" causes SIGSEGV if a directory name isn't valid utf-8
noreply at thewildbeast.co.uk
noreply at thewildbeast.co.uk
Sun Oct 6 16:50:54 CEST 2013
http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3009
Bug ID: 3009
Summary: "Rebuild folder tree" causes SIGSEGV if a directory
name isn't valid utf-8
Classification: Unclassified
Product: Claws Mail
Version: 3.9.2
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P3
Component: Folders
Assignee: users at lists.claws-mail.org
Reporter: fk at fabiankeil.de
Created attachment 1299
-->
http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1299&action=edit
Let folder_item_new() convert the filename to utf8, to prevent crashes later on
If the mailbox contains a directory whose name isn't valid utf-8, "Rebuild
folder tree" causes a segmentation fault:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 80a806400 (LWP 100502)]
strcoll_l (s=<optimized out>, s2=<optimized out>, locale=<optimized out>) at
/usr/src/lib/libc/string/strcoll.c:65
65 while(*t && *t2) {
(gdb) where
#0 strcoll_l (s=<optimized out>, s2=<optimized out>, locale=<optimized out>)
at /usr/src/lib/libc/string/strcoll.c:65
#1 0x000000080919e84b in strcoll (s=0x0, s2=0x80bc565a8 "[...]") at
/usr/src/lib/libc/string/strcoll.c:100
#2 0x000000080634af4a in g_utf8_collate (str1=0x80bc55fd8 "[...]\374[...]",
str2=0x80bc50438 "[...]") at gunicollate.c:136
#3 0x00000000004b9070 in folderview_clist_compare (clist=0x80a9543f0,
ptr1=0x80ab4fc30, ptr2=0x80ab4f930) at folderview.c:2574
#4 0x0000000000691f34 in sink (clist=0x80a9543f0, numbers=0x80bd20160, root=3,
bottom=7) at gtksctree.c:1082
#5 0x0000000000691dd9 in heap_sort (clist=0x80a9543f0, numbers=0x80bd20160,
array_size=7) at gtksctree.c:1103
#6 0x000000000068f681 in stree_sort (ctree=0x80a9543f0, node=0x80bc69180,
data=0x0) at gtksctree.c:1145
#7 0x000000000066204f in gtk_cmctree_post_recursive (ctree=0x80a9543f0,
node=0x80bc69180, func=0x68f540 <stree_sort>, data=0x0) at gtkcmctree.c:3334
#8 0x0000000000662022 in gtk_cmctree_post_recursive (ctree=0x80a9543f0,
node=0x80bc690c0, func=0x68f540 <stree_sort>, data=0x0) at gtkcmctree.c:3329
#9 0x000000000068f49e in gtk_sctree_sort_recursive (ctree=0x80a9543f0,
node=0x80bc690c0) at gtksctree.c:1205
[...]
The attached patch is one way to address the problem.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Users
mailing list