diff options
author | Lucian Langa <lucilanga@gnome.org> | 2012-09-11 22:31:35 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-09-11 22:31:35 +0800 |
commit | 4a07071e2f72af2301106f5b2a03177675a7a5f1 (patch) | |
tree | 68c7d34b49a8122ffb61465cdb4ac6bd00cfe515 /em-format | |
parent | d655d5889c1f1b1aab61070f987b811fd262c469 (diff) | |
download | gsoc2013-evolution-4a07071e2f72af2301106f5b2a03177675a7a5f1.tar gsoc2013-evolution-4a07071e2f72af2301106f5b2a03177675a7a5f1.tar.gz gsoc2013-evolution-4a07071e2f72af2301106f5b2a03177675a7a5f1.tar.bz2 gsoc2013-evolution-4a07071e2f72af2301106f5b2a03177675a7a5f1.tar.lz gsoc2013-evolution-4a07071e2f72af2301106f5b2a03177675a7a5f1.tar.xz gsoc2013-evolution-4a07071e2f72af2301106f5b2a03177675a7a5f1.tar.zst gsoc2013-evolution-4a07071e2f72af2301106f5b2a03177675a7a5f1.zip |
Bug #683665 - Crash on displaying message with broken Content-Type attachment
Diffstat (limited to 'em-format')
-rw-r--r-- | em-format/e-mail-extension-registry.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/em-format/e-mail-extension-registry.c b/em-format/e-mail-extension-registry.c index 00d6b55658..348228620c 100644 --- a/em-format/e-mail-extension-registry.c +++ b/em-format/e-mail-extension-registry.c @@ -217,6 +217,9 @@ e_mail_extension_registry_get_fallback (EMailExtensionRegistry *reg, g_return_val_if_fail (mime_type && *mime_type, NULL); s = strchr (mime_type, '/'); + if (!s) + return NULL; + len = s - mime_type; s = g_alloca (len); |