pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/gajim/patches chat/gajim: Remove stale patch.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0089c5c08550
branches:  trunk
changeset: 385311:0089c5c08550
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Sep 19 18:07:01 2018 +0000

description:
chat/gajim: Remove stale patch.

diffstat:

 chat/gajim/patches/patch-src_common_latex.py |  29 ----------------------------
 1 files changed, 0 insertions(+), 29 deletions(-)

diffs (33 lines):

diff -r 3d2da9dc9721 -r 0089c5c08550 chat/gajim/patches/patch-src_common_latex.py
--- a/chat/gajim/patches/patch-src_common_latex.py      Wed Sep 19 17:59:35 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-$NetBSD: patch-src_common_latex.py,v 1.1 2012/04/17 20:57:09 gls Exp $
-
-CVE-2012-2093: improve temp file search when using latex to prevent overwriting files
-Taken from upstream repository: https://trac.gajim.org/changeset/13759/src/common/latex.py
-
---- src/common/latex.py.orig   2012-03-18 11:25:56.000000000 +0000
-+++ src/common/latex.py
-@@ -59,8 +59,19 @@ def check_blacklist(str_):
- 
- def get_tmpfile_name():
-     random.seed()
--    int_ = random.randint(0, 100)
--    return os.path.join(gettempdir(), 'gajimtex_' + int_.__str__())
-+    while(nb < 100):
-+        int_ = random.randint(0, 10000)
-+        filename = os.path.join(gettempdir(), 'gajimtex_' + int_.__str__())
-+        # Check if a file to not overwrite it
-+        ok = True
-+        extensions = ['.tex', '.log', '.aux', '.dvi']
-+        for ext in extensions:
-+            if os.path.exists(filename + ext):
-+                ok = False
-+                break
-+        if ok:
-+            return filename
-+    return filename
- 
- def write_latex(filename, str_):
-     texstr = '\\documentclass[12pt]{article}\\usepackage[dvips]{graphicx}'



Home | Main Index | Thread Index | Old Index