Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140203931
D44339.id135693.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D44339.id135693.diff
View Options
diff --git a/print/ghostscript10/Makefile b/print/ghostscript10/Makefile
--- a/print/ghostscript10/Makefile
+++ b/print/ghostscript10/Makefile
@@ -1,5 +1,6 @@
PORTNAME= ghostscript
DISTVERSION= 10.03.0
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs${DISTVERSION:S/.//g}/
PKGNAMESUFFIX= ${GS_MAJOR_VERSION}
@@ -27,6 +28,8 @@
USE_LDCONFIG= yes
CPE_VENDOR= artifex
+EXTRA_PATCHES= ${PATCHDIR}/90cabe08422afdd16bac5dd9217602679d943045.patch:-p1
+
EXTRACT_AFTER_ARGS= --exclude cups/libs \
--exclude expat \
--exclude freetype \
diff --git a/print/ghostscript10/files/90cabe08422afdd16bac5dd9217602679d943045.patch b/print/ghostscript10/files/90cabe08422afdd16bac5dd9217602679d943045.patch
new file mode 100644
--- /dev/null
+++ b/print/ghostscript10/files/90cabe08422afdd16bac5dd9217602679d943045.patch
@@ -0,0 +1,26 @@
+From: Ken Sharp <Ken.Sharp@artifex.com>
+Date: Fri, 8 Mar 2024 09:19:05 +0000 (+0000)
+Subject: Bug #707649 - fix apply_sasl in error cases.
+X-Git-Url: https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff_plain;h=90cabe08422afdd16bac5dd9217602679d943045
+
+Bug #707649 - fix apply_sasl in error cases.
+
+Forgot to dereference the pointers before assigning the values, if we
+get non-fatal errors returned from stringprep.
+---
+
+diff --git a/pdf/pdf_sec.c b/pdf/pdf_sec.c
+index 565ae80ca..7e8f6719d 100644
+--- a/pdf/pdf_sec.c
++++ b/pdf/pdf_sec.c
+@@ -183,8 +183,8 @@ static int apply_sasl(pdf_context *ctx, char *Password, int Len, char **NewPassw
+ * this easy: the errors we want to ignore are the ones with
+ * codes less than 100. */
+ if ((int)err < 100) {
+- NewPassword = Password;
+- NewLen = Len;
++ *NewPassword = Password;
++ *NewLen = Len;
+ return 0;
+ }
+
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 22, 10:09 AM (3 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27144920
Default Alt Text
D44339.id135693.diff (1 KB)
Attached To
Mode
D44339: print/ghostscript10: fix compilation issue with LLVM > 14
Attached
Detach File
Event Timeline
Log In to Comment