From e09f106df1bc2da6318f310762e9d596bd9a6880 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Sat, 11 Aug 2018 05:01:49 +0000 Subject: Sat Aug 11 05:01:49 UTC 2018 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xap/mozilla-thunderbird-60.0-x86_64-2.txz: Rebuilt. Applied upstream patch to fix crash with folder name with special characters. Thanks to Karl Magnus Kolstø for the bug report and link to the patch. --- source/xap/mozilla-thunderbird/80754eac3809 | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 source/xap/mozilla-thunderbird/80754eac3809 (limited to 'source/xap/mozilla-thunderbird/80754eac3809') diff --git a/source/xap/mozilla-thunderbird/80754eac3809 b/source/xap/mozilla-thunderbird/80754eac3809 new file mode 100644 index 000000000..c38efb653 --- /dev/null +++ b/source/xap/mozilla-thunderbird/80754eac3809 @@ -0,0 +1,32 @@ + +# HG changeset patch +# User Magnus Melin +# Date 1533928828 -10800 +# Node ID 80754eac3809bff2f8fe4ea05bd16dbaf3dfe1a7 +# Parent 020481090e4e241e345f92410688c9f81e543911 +Bug 1482248 - don't crash on empty file name in nsMsgLocalStoreUtils::nsShouldIgnoreFile. r=jorgk + +diff --git a/mailnews/local/src/nsMsgLocalStoreUtils.cpp b/mailnews/local/src/nsMsgLocalStoreUtils.cpp +--- a/mailnews/local/src/nsMsgLocalStoreUtils.cpp ++++ b/mailnews/local/src/nsMsgLocalStoreUtils.cpp +@@ -23,16 +23,19 @@ nsMsgLocalStoreUtils::AddDirectorySepara + path->GetLeafName(leafName); + leafName.AppendLiteral(FOLDER_SUFFIX); + return path->SetLeafName(leafName); + } + + bool + nsMsgLocalStoreUtils::nsShouldIgnoreFile(nsAString& name) + { ++ if (name.IsEmpty()) ++ return true; ++ + char16_t firstChar = name.First(); + if (firstChar == '.' || firstChar == '#' || + name.CharAt(name.Length() - 1) == '~') + return true; + + if (name.LowerCaseEqualsLiteral("msgfilterrules.dat") || + name.LowerCaseEqualsLiteral("rules.dat") || + name.LowerCaseEqualsLiteral("filterlog.html") || + -- cgit v1.2.3-65-gdbad