File cups-2.2.7-CVE-2022-26691.patch of Package cups
16
1
--- scheduler/cert.c.orig 2018-03-23 04:48:36.000000000 +0100
2
+++ scheduler/cert.c 2022-05-20 12:24:03.612609659 +0200
3
4
a ++;
5
b ++;
6
}
7
+ // the while loop finishes when not ( *a != '\0' and *b != '\0' )
8
+ // so it finishes when *a == '\0' or *b == '\0' so after the while loop
9
+ // either both *a and *b == '\0', or one points inside a string,
10
+ // so when *a != '\0' or *b != '\0' the two strings differ:
11
+ if (*a || *b)
12
+ result = 1;
13
14
return (result);
15
}
16