From: Michael R Sweet Date: Tue, 28 May 2024 23:46:08 +0000 (-0400) Subject: Fix infinite loop if the format buffer is too small. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae18169d7a49c4c54016ec0b96b352236cbae598;p=thirdparty%2Fcups.git Fix infinite loop if the format buffer is too small. --- diff --git a/cups/string.c b/cups/string.c index 4d5e09172d..615caadf02 100644 --- a/cups/string.c +++ b/cups/string.c @@ -480,6 +480,8 @@ cupsFormatStringv( if (bufptr < bufend) *bufptr++ = *format++; + else + format ++; } }