[Python-apps-commits] r11784 - in packages/archmage/trunk/debian/patches (2 files)
dottedmag at users.alioth.debian.org
dottedmag at users.alioth.debian.org
Wed Mar 4 20:02:12 UTC 2015
Date: Wednesday, March 4, 2015 @ 20:02:11
Author: dottedmag
Revision: 11784
Drop fix-directory-traversal.patch, applied upstream
Modified:
packages/archmage/trunk/debian/patches/series
Deleted:
packages/archmage/trunk/debian/patches/fix-directory-traversal.patch
Deleted: packages/archmage/trunk/debian/patches/fix-directory-traversal.patch
===================================================================
--- packages/archmage/trunk/debian/patches/fix-directory-traversal.patch 2015-03-04 19:56:25 UTC (rev 11783)
+++ packages/archmage/trunk/debian/patches/fix-directory-traversal.patch 2015-03-04 20:02:11 UTC (rev 11784)
@@ -1,33 +0,0 @@
-From 51e60c8eaef774cab152a54a87329a15530cd6eb Mon Sep 17 00:00:00 2001
-From: Mikhail Gusarov <dottedmag at dottedmag.net>
-Date: Sun, 25 Jan 2015 17:22:30 +0100
-Subject: [PATCH] Fix directory traversal bug (Debian #776164)
-
----
- archmod/CHM.py | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/archmod/CHM.py b/archmod/CHM.py
-index 78d6e5f..44113a5 100644
---- a/archmod/CHM.py
-+++ b/archmod/CHM.py
-@@ -26,6 +26,7 @@ except ImportError, msg:
- from archmod.chmtotext import chmtotext
- from archmod.htmldoc import htmldoc
-
-+PARENT_RE = re.compile(r'(^|/|\\)\.\.(/|\\|$)')
-
- class CHMDir(Cached):
- """Class that represent CHM content from directory"""
-@@ -222,6 +223,8 @@ class CHMDir(Cached):
- # if entry is auxiliary file, than skip it
- if re.match(self.aux_re, e):
- continue
-+ if PARENT_RE.search(e):
-+ raise RuntimeError('Giving up on malicious name: %s' % e)
- self.extract_entry(e, output_file=e, destdir=destdir, correct=correct)
-
- def extract(self, destdir):
---
-2.2.1
-
Modified: packages/archmage/trunk/debian/patches/series
===================================================================
--- packages/archmage/trunk/debian/patches/series 2015-03-04 19:56:25 UTC (rev 11783)
+++ packages/archmage/trunk/debian/patches/series 2015-03-04 20:02:11 UTC (rev 11784)
@@ -1,2 +1 @@
python-interpreter.diff
-fix-directory-traversal.patch
More information about the Python-apps-commits
mailing list