3f864f
diff -urNp old/plug-ins/common/file-psp.c new/plug-ins/common/file-psp.c
3f864f
--- old/plug-ins/common/file-psp.c	2018-01-04 11:58:46.928253797 +0100
3f864f
+++ new/plug-ins/common/file-psp.c	2018-01-04 12:03:42.141874067 +0100
3f864f
@@ -913,6 +913,12 @@ read_creator_block (FILE     *f,
3f864f
               g_message ("Error reading creator keyword data");
3f864f
               return -1;
3f864f
             }
3f864f
+          if (string[length - 1] != '\0')
3f864f
+            {
3f864f
+              g_message ("Creator keyword data not nul-terminated");
3f864f
+              g_free (string);
3f864f
+              return -1;
3f864f
+            }
3f864f
           switch (keyword)
3f864f
             {
3f864f
             case PSP_CRTR_FLD_CRT_DATE: