From: Thorsten Alteholz <debian@alteholz.de>
Date: Sat, 24 Jun 2023 11:06:49 +0200
Subject: CVE-2023-32324

---
 cups/string.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cups/string.c b/cups/string.c
index 93cdad1..1f81d60 100644
--- a/cups/string.c
+++ b/cups/string.c
@@ -1,6 +1,7 @@
 /*
  * String functions for CUPS.
  *
+ * Copyright © 2023 by OpenPrinting.
  * Copyright © 2007-2019 by Apple Inc.
  * Copyright © 1997-2007 by Easy Software Products.
  *
@@ -729,6 +730,8 @@ _cups_strlcpy(char       *dst,		/* O - Destination string */
 {
   size_t	srclen;			/* Length of source string */
 
+  if (size == 0)
+    return (0);
 
  /*
   * Figure out how much room is needed...
