Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 176591 Details for
Bug 252734
app-text/pdfjam <1.20-r1 Multiple vulnerabilities (CVE-2008-5743, CVE-2008-5843)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix two security issues and the non-POSIXness
pdfjam-security.patch (text/plain), 3.80 KB, created by
Martin Väth
on 2008-12-28 11:40:09 UTC
(
hide
)
Description:
Patch to fix two security issues and the non-POSIXness
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2008-12-28 11:40:09 UTC
Size:
3.80 KB
patch
obsolete
>--- scripts/pdf90 >+++ scripts/pdf90 >@@ -43,12 +43,12 @@ > for d in /etc /usr/share/etc /usr/local/share /usr/local/etc > do if test -f $d/pdfnup.conf; then > echo "Reading site configuration from $d/pdfnup.conf" >- source $d/pdfnup.conf >+ . $d/pdfnup.conf > fi > done > if test -f ~/.pdfnup.conf; then > echo "Reading user defaults from ~/.pdfnup.conf"; >- source ~/.pdfnup.conf; >+ . ~/.pdfnup.conf; > fi > ####################################################################### > ## >@@ -71,8 +71,8 @@ > ## > ## Check that necessary LaTeX packages are installed > ## >-PATH=`dirname "$pdflatex"`:$PATH >-export PATH >+modifyPath="${pdflatex%/*}" >+[ -n "$modifyPath" ] && export PATH="$modifyPath:$PATH" > case `kpsewhich pdfpages.sty` in > "") echo "pdf90: pdfpages.sty not installed"; exit 1;; > esac >@@ -136,6 +136,19 @@ > ## > ## That's the arguments done. > ## >+ >+mkTempDir='' >+trap 'test -n "$mkTempDir" && test -d "$mkTempDir" && \ >+ rm -rf -- "$mkTempDir" && mkTempDir=""; \ >+ trap - EXIT HUP INT TERM' EXIT HUP INT TERM >+if ! command -v mktemp >/dev/null 2>&1 || \ >+ ! mkTempDir=`mktemp -d -- "$tempfileDir/pdf90.XXXXXX"` >+then >+ echo "pdf90: cannot create temporary directory" >+ exit 2 >+fi >+tempfileDir=$mkTempDir >+ > ## > ## Now work on the input file (or files in turn) > ## >--- scripts/pdfjoin >+++ scripts/pdfjoin >@@ -50,12 +50,12 @@ > for d in /etc /usr/share/etc /usr/local/share /usr/local/etc > do if test -f $d/pdfnup.conf; then > echo "Reading site configuration from $d/pdfnup.conf" >- source $d/pdfnup.conf >+ . $d/pdfnup.conf > fi > done > if test -f ~/.pdfnup.conf; then > echo "Reading user defaults from ~/.pdfnup.conf"; >- source ~/.pdfnup.conf; >+ . ~/.pdfnup.conf; > fi > ####################################################################### > ## >@@ -99,8 +99,8 @@ > ## > ## Check that necessary LaTeX packages are installed > ## >-PATH=`dirname "$pdflatex"`:$PATH >-export PATH >+modifyPath="${pdflatex%/*}" >+[ -n "$modifyPath" ] && export PATH="$modifyPath:$PATH" > case `kpsewhich pdfpages.sty` in > "") echo "pdfjoin: pdfpages.sty not installed"; exit 1;; > esac >@@ -171,6 +171,19 @@ > ## > ## That's the arguments done. > ## >+ >+mkTempDir='' >+trap 'test -n "$mkTempDir" && test -d "$mkTempDir" && \ >+ rm -rf -- "$mkTempDir" && mkTempDir=""; \ >+ trap - EXIT HUP INT TERM' EXIT HUP INT TERM >+if ! command -v mktemp >/dev/null 2>&1 || \ >+ ! mkTempDir=`mktemp -d -- "$tempfileDir/pdfjoin.XXXXXX"` >+then >+ echo "pdfjoin: cannot create temporary directory" >+ exit 2 >+fi >+tempfileDir=$mkTempDir >+ > ## > ## Now work on the input files > ## >--- scripts/pdfnup >+++ scripts/pdfnup >@@ -57,12 +57,12 @@ > for d in /etc /usr/share/etc /usr/local/share /usr/local/etc > do if test -f $d/pdfnup.conf; then > echo "Reading site configuration from $d/pdfnup.conf" >- source $d/pdfnup.conf >+ . $d/pdfnup.conf > fi > done > if test -f ~/.pdfnup.conf; then > echo "Reading user defaults from ~/.pdfnup.conf"; >- source ~/.pdfnup.conf; >+ . ~/.pdfnup.conf; > fi > ####################################################################### > ## >@@ -134,8 +134,8 @@ > ## > ## Check that necessary LaTeX packages are installed > ## >-PATH=`dirname "$pdflatex"`:$PATH >-export PATH >+modifyPath="${pdflatex%/*}" >+[ -n "$modifyPath" ] && export PATH="$modifyPath:$PATH" > case `kpsewhich pdfpages.sty` in > "") echo "pdfnup: pdfpages.sty not installed"; exit 1;; > esac >@@ -232,6 +232,20 @@ > ## > ## That's the arguments done. > ## >+ >+mkTempDir='' >+trap 'test -n "$mkTempDir" && test -d "$mkTempDir" && \ >+ rm -rf -- "$mkTempDir" && mkTempDir=""; \ >+ trap - EXIT HUP INT TERM' EXIT HUP INT TERM >+if ! command -v mktemp >/dev/null 2>&1 || \ >+ ! mkTempDir=`mktemp -d -- "$tempfileDir/pdfnup.XXXXXX"` >+then >+ echo "pdfnup: cannot create temporary directory" >+ exit 2 >+fi >+tempfileDir=$mkTempDir >+ >+## > ## Next sort out paper orientation, if not specified > ## > x=`echo $nup | sed 's/..$//'`
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 252734
: 176591