From d71aca7673826d5f5fa93b43c7c8af3c1e023dc6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 12 Mar 2024 18:46:38 +0000 Subject: gentoo auto-resync : 12:03:2024 - 18:46:38 --- .../files/ghostscript-gpl-10.03.0-c99.patch | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app-text/ghostscript-gpl/files/ghostscript-gpl-10.03.0-c99.patch (limited to 'app-text/ghostscript-gpl/files') diff --git a/app-text/ghostscript-gpl/files/ghostscript-gpl-10.03.0-c99.patch b/app-text/ghostscript-gpl/files/ghostscript-gpl-10.03.0-c99.patch new file mode 100644 index 000000000000..494c7080317a --- /dev/null +++ b/app-text/ghostscript-gpl/files/ghostscript-gpl-10.03.0-c99.patch @@ -0,0 +1,25 @@ +https://bugs.ghostscript.com/show_bug.cgi?id=707649 +https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=90cabe08422afdd16bac5dd9217602679d943045 + +From 90cabe08422afdd16bac5dd9217602679d943045 Mon Sep 17 00:00:00 2001 +From: Ken Sharp +Date: Fri, 8 Mar 2024 09:19:05 +0000 +Subject: [PATCH] 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. +--- 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; + } + +-- +2.34.1 -- cgit v1.2.3