]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix infinite loop if the format buffer is too small.
authorMichael R Sweet <msweet@msweet.org>
Tue, 28 May 2024 23:46:08 +0000 (19:46 -0400)
committerMichael R Sweet <msweet@msweet.org>
Tue, 28 May 2024 23:46:08 +0000 (19:46 -0400)
cups/string.c

index 4d5e09172d2a821c27798473c307934c5e8a7f66..615caadf022ee526c5c79ae8aaa7a927606eebb0 100644 (file)
@@ -480,6 +480,8 @@ cupsFormatStringv(
 
       if (bufptr < bufend)
         *bufptr++ = *format++;
+      else
+        format ++;
     }
   }