File cups-2.2.7-CVE-2020-3898.patch of Package cups (Revision e195a46973c88410e29195b989f9c913)
Currently displaying revision e195a46973c88410e29195b989f9c913 , Show latest
xxxxxxxxxx
1
--- cups/ppd.c.orig 2018-03-23 04:48:36.000000000 +0100
2
+++ cups/ppd.c 2020-04-06 11:52:56.257015366 +0200
3
4
constraint->choice1, constraint->option2,
5
constraint->choice2))
6
{
7
- case 0 : /* Error */
8
- case 1 : /* Error */
9
+ default : /* Error */
10
pg->ppd_status = PPD_BAD_UI_CONSTRAINTS;
11
goto error;
12
13
--- ppdc/ppdc-source.cxx.orig 2018-03-23 04:48:36.000000000 +0100
14
+++ ppdc/ppdc-source.cxx 2020-04-06 11:59:29.061404709 +0200
15
16
17
switch (sscanf(name, "%dx%d", &xdpi, &ydpi))
18
{
19
- case 0 :
20
- _cupsLangPrintf(stderr,
21
- _("ppdc: Bad resolution name \"%s\" on line %d of "
22
- "%s."), name, fp->line, fp->filename);
23
- break;
24
case 1 :
25
ydpi = xdpi;
26
break;
27
+ case 2 :
28
+ break;
29
+ default :
30
+ _cupsLangPrintf(stderr,
31
+ _("ppdc: Bad resolution name \"%s\" on line %d of "
32
+ "%s."), name, fp->line, fp->filename);
33
+ break;
34
}
35
36
// Create the necessary PS commands...
37