Cross Reference: str4551.patch
xref
: /
solaris-userland-s11u3
/
components
/
cups
/
patches
/
str4551.patch
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
6086
N/A
/* This is an upstream patch. Details:
https://www.cups.org/strfiles.php/3438/str4551.patch
6086
N/A
Index:
filter
/
raster.c
6086
N/A
=================================================================== */
6086
N/A
---
filter
/
raster
.c (
revision
12451
)
6086
N/A
+++
filter
/
raster
.c (
working
copy
)
6086
N/A
@@ -
3
,
7
+
3
,
7
@@
6086
N/A
*
6086
N/A
*
Raster
file
routines
for
CUPS
.
6086
N/A
*
6086
N/A
- *
Copyright
2007
-
2010
by
Apple
Inc
.
6086
N/A
+ *
Copyright
2007
-
2015
by
Apple
Inc
.
6086
N/A
*
Copyright
1997
-
2006
by
Easy
Software
Products
.
6086
N/A
*
6086
N/A
*
This
file
is
part
of
the
CUPS
Imaging
library
.
6086
N/A
@@ -
239
,
7
+
240
,
10
@@
6086
N/A
*/
6086
N/A
6086
N/A
if
(!
cups_raster_read_header
(r))
6086
N/A
+ {
6086
N/A
+
memset
(h,
0
,
sizeof
(
cups_page_header_t
));
6086
N/A
return
(
0
);
6086
N/A
+ }
6086
N/A
6086
N/A
/*
6086
N/A
* Copy the header to the user-supplied buffer...
6086
N/A
@@ -268,7 +272,10 @@
6086
N/A
*/
6086
N/A
6086
N/A
if
(!
cups_raster_read_header
(r))
6086
N/A
+ {
6086
N/A
+
memset
(h,
0
,
sizeof
(
cups_page_header2_t
));
6086
N/A
return
(
0
);
6086
N/A
+ }
6086
N/A
6086
N/A
/*
6086
N/A
* Copy the header to the user-supplied buffer...
6086
N/A
@@ -762,7 +762,7 @@
6086
N/A
6086
N/A
cups_raster_update(r);
6086
N/A
6086
N/A
- return (1);
6086
N/A
+ return (r->header.cupsBytesPerLine != 0 && r->header.cupsHeight != 0 && (r->header.cupsBytesPerLine % r->bpp) == 0);
6086
N/A
}