[Python-apps-commits] r11641 - in packages/mercurial/branches/wheezy/debian/patches (3 files)

vicho at users.alioth.debian.org vicho at users.alioth.debian.org
Mon Dec 22 10:37:19 UTC 2014


    Date: Monday, December 22, 2014 @ 10:37:17
  Author: vicho
Revision: 11641

Drop patches not needed for CVE-2014-9390

Matt Mackall said in an email to mercurial-packaging that the minimal set is:
   - http://selenic.com/repo/hg-stable/rev/885bd7c5c7e3
   - http://selenic.com/repo/hg-stable/rev/c02a05cc6f5e
   - http://selenic.com/repo/hg-stable/rev/6dad422ecc5a

Modified:
  packages/mercurial/branches/wheezy/debian/patches/series
Deleted:
  packages/mercurial/branches/wheezy/debian/patches/from_upstream__darwin_omit_ignorable_codepoints_when_normcaseing_a_file_path.patch
  packages/mercurial/branches/wheezy/debian/patches/from_upstream__test-casefolding_t_demonstrate_a_bug_with_HFS_ignoring_some_codepoints.patch

Deleted: packages/mercurial/branches/wheezy/debian/patches/from_upstream__darwin_omit_ignorable_codepoints_when_normcaseing_a_file_path.patch
===================================================================
--- packages/mercurial/branches/wheezy/debian/patches/from_upstream__darwin_omit_ignorable_codepoints_when_normcaseing_a_file_path.patch	2014-12-21 20:25:15 UTC (rev 11640)
+++ packages/mercurial/branches/wheezy/debian/patches/from_upstream__darwin_omit_ignorable_codepoints_when_normcaseing_a_file_path.patch	2014-12-22 10:37:17 UTC (rev 11641)
@@ -1,38 +0,0 @@
-Origin: http://selenic.com/repo/hg-stable/rev/7a5bcd471f2e
-Description: darwin: omit ignorable codepoints when normcase()ing a file path
- This lets us avoid some nasty case collision problems in OS X with
- invisible codepoints.
- .
- This is a fix for CVE-2014-9390
-Applied-Upstream: 3.2.3
-
---- a/mercurial/posix.py
-+++ b/mercurial/posix.py
-@@ -191,7 +191,9 @@ if sys.platform == 'darwin':
-             u = s.decode('utf-8')
- 
-         # Decompose then lowercase (HFS+ technote specifies lower)
--        return unicodedata.normalize('NFD', u).lower().encode('utf-8')
-+        enc = unicodedata.normalize('NFD', u).lower().encode('utf-8')
-+        # drop HFS+ ignored characters
-+        return encoding.hfsignoreclean(enc)
- 
-     def realpath(path):
-         '''
---- a/tests/test-casefolding.t
-+++ b/tests/test-casefolding.t
-@@ -165,12 +165,11 @@ case changes.
- We assume anyone running the tests on a case-insensitive volume on OS
- X will be using HFS+. If that's not true, this test will fail.
- 
--Bug: some codepoints are to be ignored on HFS+:
--
-   $ rm A
-   >>> open(u'a\u200c'.encode('utf-8'), 'w').write('unicode is fun')
-   $ hg status
-   M A
--  ? a\xe2\x80\x8c (esc)
-+
- #endif
-+
-   $ cd ..

Deleted: packages/mercurial/branches/wheezy/debian/patches/from_upstream__test-casefolding_t_demonstrate_a_bug_with_HFS_ignoring_some_codepoints.patch
===================================================================
--- packages/mercurial/branches/wheezy/debian/patches/from_upstream__test-casefolding_t_demonstrate_a_bug_with_HFS_ignoring_some_codepoints.patch	2014-12-21 20:25:15 UTC (rev 11640)
+++ packages/mercurial/branches/wheezy/debian/patches/from_upstream__test-casefolding_t_demonstrate_a_bug_with_HFS_ignoring_some_codepoints.patch	2014-12-22 10:37:17 UTC (rev 11641)
@@ -1,25 +0,0 @@
-Origin: http://selenic.com/repo/hg-stable/rev/035434b407be
-Description: test-casefolding.t: demonstrate a bug with HFS+ ignoring some codepoints
- This is a fix for CVE-2014-9390
-Applied-Upstream: 3.2.3
-
---- a/tests/test-casefolding.t
-+++ b/tests/test-casefolding.t
-@@ -160,4 +160,17 @@ case changes.
-   $ hg status -A
-   C MiXeDcAsE
- 
-+#if osx
-+
-+We assume anyone running the tests on a case-insensitive volume on OS
-+X will be using HFS+. If that's not true, this test will fail.
-+
-+Bug: some codepoints are to be ignored on HFS+:
-+
-+  $ rm A
-+  >>> open(u'a\u200c'.encode('utf-8'), 'w').write('unicode is fun')
-+  $ hg status
-+  M A
-+  ? a\xe2\x80\x8c (esc)
-+#endif
-   $ cd ..

Modified: packages/mercurial/branches/wheezy/debian/patches/series
===================================================================
--- packages/mercurial/branches/wheezy/debian/patches/series	2014-12-21 20:25:15 UTC (rev 11640)
+++ packages/mercurial/branches/wheezy/debian/patches/series	2014-12-22 10:37:17 UTC (rev 11641)
@@ -11,8 +11,6 @@
 from_upstream__set_vimdiff_to_check_changed.patch
 from_upstream__mergetools_vimdiff_issue_warning.patch
 from_upstream__mergetools_refine_vimdiff_warning_message.patch
-from_upstream__test-casefolding_t_demonstrate_a_bug_with_HFS_ignoring_some_codepoints.patch
 from_upstream__encoding_add_hfsignoreclean_to_clean_out_HFS-ignored_characters.patch
 from_upstream__pathauditor_check_for_codepoints_ignored_on_OS_X.patch
-from_upstream__darwin_omit_ignorable_codepoints_when_normcaseing_a_file_path.patch
 from_upstream__pathauditor_check_for_Windows_shortname_aliases.patch




More information about the Python-apps-commits mailing list