098676ac8a
Fix for CVE-2023-32324 Heap buffer overflow in cupsd bsc#1211643 OBS-URL: https://build.opensuse.org/request/show/1090271 OBS-URL: https://build.opensuse.org/package/show/Printing/cups?expand=0&rev=397
13 lines
319 B
Diff
13 lines
319 B
Diff
--- cups/string.c.orig 2022-05-26 08:17:21.000000000 +0200
|
|
+++ cups/string.c 2023-06-01 13:26:33.175494819 +0200
|
|
@@ -730,6 +730,9 @@ _cups_strlcpy(char *dst, /* O - D
|
|
size_t srclen; /* Length of source string */
|
|
|
|
|
|
+ if (size == 0)
|
|
+ return (0);
|
|
+
|
|
/*
|
|
* Figure out how much room is needed...
|
|
*/
|