File gimp-CVE-2017-17787.patch of Package gimp.17698

diff -Nura gimp-2.8.22/plug-ins/common/file-psp.c gimp-2.8.22_new/plug-ins/common/file-psp.c
--- gimp-2.8.22/plug-ins/common/file-psp.c	2020-12-19 02:52:38.392357505 +0000
+++ gimp-2.8.22_new/plug-ins/common/file-psp.c	2020-12-19 03:04:06.473880837 +0000
@@ -890,6 +890,12 @@
               g_free (string);
               return -1;
             }
+	  if (string[length - 1] != '\0')
+            {
+              g_message ("Creator keyword data not nul-terminated");
+              g_free (string);
+              return -1;
+            }
           switch (keyword)
             {
             case PSP_CRTR_FLD_TITLE:
openSUSE Build Service is sponsored by