Bug 4501 - Claws crashes when sorting by subject
Summary: Claws crashes when sorting by subject
Status: CLOSED FIXED
Alias: None
Product: Claws Mail (Windows)
Classification: Unclassified
Component: default (show other bugs)
Version: 3.18.0
Hardware: PC Windows 10
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2021-07-12 15:45 UTC by Jonathan Boeing
Modified: 2021-07-30 06:01 UTC (History)
0 users

See Also:


Attachments
check if string is valid UTF8 before collating (901 bytes, patch)
2021-07-12 15:45 UTC, Jonathan Boeing
Details | Diff

Description Jonathan Boeing 2021-07-12 15:45:42 UTC
Created attachment 2222 [details]
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.

Note You need to log in before you can comment on or make changes to this bug.