diff options
author | nia <nia@pkgsrc.org> | 2018-09-19 18:07:01 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2018-09-19 18:07:01 +0000 |
commit | 3548c9b93d21405195d8d4252e47e8bb228c778c (patch) | |
tree | 8dee88e0b83b2fad0d4879b20d870b45c2b744fc /chat/gajim | |
parent | cf95ea36f181bfad5f619f9002f7b6f747e7417f (diff) | |
download | pkgsrc-3548c9b93d21405195d8d4252e47e8bb228c778c.tar.gz |
chat/gajim: Remove stale patch.
Diffstat (limited to 'chat/gajim')
-rw-r--r-- | chat/gajim/patches/patch-src_common_latex.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/chat/gajim/patches/patch-src_common_latex.py b/chat/gajim/patches/patch-src_common_latex.py deleted file mode 100644 index f61a59e3bcc..00000000000 --- a/chat/gajim/patches/patch-src_common_latex.py +++ /dev/null @@ -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}' |