[Users] [Bug 4501] New: Claws crashes when sorting by subject

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Mon Jul 12 15:45:42 CEST 2021


https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4501

            Bug ID: 4501
           Summary: Claws crashes when sorting by subject
           Product: Claws Mail
           Version: 3.18.0
          Hardware: PC
                OS: Windows 10
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Other
          Assignee: users at lists.claws-mail.org
          Reporter: jonathan at claws-mail.org

Created attachment 2222
  -->
https://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=2222&action=edit
check if string is valid UTF8 before collating

This was initially mentioned in the comments in 4460 (Unable to build installer
for Windows because syntax error in `packages.current', line 13); I'm filing it
as its own bug.

The report was that Claws crashes when sorting by subject.  The reporter
couldn't narrow it down a specific email, but did produce a minidump of the
crash.  The dump wasn't fully intact, but it looked like there was a call to
g_utf8_collate() a bit higher in the stack before the crash.

I couldn't reproduce the crash myself, but the attached patch fixed the issue
for the reporter.

GLib expects valid UTF8 strings for g_utf8_collate(), so call g_utf8_validate()
on the message subjects before trying to collate them.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Users mailing list