1diff --git a/cups/raster-interpret.c b/cups/raster-interpret.c 2index fbe52f37..c24388d2 100644 3--- a/cups/raster-interpret.c 4+++ b/cups/raster-interpret.c 5@@ -1113,7 +1113,19 @@ scan_ps(_cups_ps_stack_t *st, /* I - Stack */ 6 7 cur ++; 8 9- if (*cur == 'b') 10+ /* 11+ * Return NULL if we reached NULL terminator, a lone backslash 12+ * is not a valid character in PostScript. 13+ */ 14+ 15+ if (!*cur) 16+ { 17+ *ptr = NULL; 18+ 19+ return (NULL); 20+ } 21+ 22+ if (*cur == 'b') 23 *valptr++ = '\b'; 24 else if (*cur == 'f') 25 *valptr++ = '\f'; 26