Skip to content

Commit

Permalink
Import CUPS v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Sweet committed Mar 15, 2016
1 parent 4ef75de commit a215cf8
Show file tree
Hide file tree
Showing 185 changed files with 10,610 additions and 7,047 deletions.
38 changes: 37 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,42 @@
CHANGES.txt - 2.0.2 - 2015-02-03
CHANGES.txt - 2.0.3 - 2015-06-08
--------------------------------

CHANGES IN CUPS V2.0.3

- Security: Fixed CERT VU #810572 exploiting the dynamic linker
(STR #4609)
- Security: The scheduler could hang with malformed gzip data
(STR #4602)
- Restored missing generic printer icon file (STR #4587)
- Fixed logging of configuration errors to show up as errors (STR #4582)
- Fixed potential buffer overflows in raster code and filters
(STR #4598, STR #4599, STR #4600, STR #4601)
- Fixed a gzip processing bug (#4602)
- Fixed <Limit> inside <Location> (STR #4575)
- Fixed lpadmin when both -m and -o are used (STR #4578)
- The web interface always showed support for 2-sided printing
(STR #4595)
- cupsRasterReadHeader did not fully validate the raster header
(STR #4596)
- The rastertopwg filter did not check for truncated input (STR #4597)
- The cups-lpd mini-daemon did not check for request parameters
(STR #4603)
- The scheduler could get caught in a busy loop (STR #4605)
- The sample Epson driver could crash (STR #4616)
- The IPP backend now correctly monitors jobs
(<rdar://problem/20495955>)
- The ppdhtml and ppdpo utilities crashed when the -D option was used
before a driver information file (STR #4627)
- ippfind incorrectly substituted "=port" for service_port.
- The IPP/1.1 test file did not handle the initial print job
completing early (STR #4576)
- Fixed a memory leak in cupsConnectDest (STR #4634)
- PWG Raster Format output contained invalid ImageBox values
(<rdar://problem/21144309>)
- Added Russian translation (STR #4577)
- Added German translation (STR #4635)


CHANGES IN CUPS V2.0.2

- Security: cupsRasterReadPixels buffer overflow with invalid page
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INSTALL - CUPS v2.0.2 - 2015-02-03
INSTALL - CUPS v2.0.3 - 2015-06-08
----------------------------------

This file describes how to compile and install CUPS from source code. For more
Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
README - CUPS v2.0.2 - 2015-02-03
README - CUPS v2.0.3 - 2015-06-08
---------------------------------

Looking for compile instructions? Read the file "INSTALL.txt" instead...
Expand Down
10 changes: 5 additions & 5 deletions backend/dnssd.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
* "$Id: dnssd.c 11969 2014-06-30 14:27:01Z msweet $"
* "$Id: dnssd.c 12660 2015-05-22 19:09:57Z msweet $"
*
* DNS-SD discovery backend for CUPS.
*
* Copyright 2008-2014 by Apple Inc.
* Copyright 2008-2015 by Apple Inc.
*
* These coded instructions, statements, and computer programs are the
* property of Apple Inc. and are protected by Federal copyright
Expand Down Expand Up @@ -318,7 +318,7 @@ main(int argc, /* I - Number of command-line args */
if ((simple_poll = avahi_simple_poll_new()) == NULL)
{
fputs("DEBUG: Unable to create Avahi simple poll object.\n", stderr);
return (1);
return (0);
}

avahi_simple_poll_set_func(simple_poll, poll_callback, NULL);
Expand All @@ -328,7 +328,7 @@ main(int argc, /* I - Number of command-line args */
if (!client)
{
fputs("DEBUG: Unable to create Avahi client.\n", stderr);
return (1);
return (0);
}

browsers = 6;
Expand Down Expand Up @@ -1330,5 +1330,5 @@ unquote(char *dst, /* I - Destination buffer */


/*
* End of "$Id: dnssd.c 11969 2014-06-30 14:27:01Z msweet $".
* End of "$Id: dnssd.c 12660 2015-05-22 19:09:57Z msweet $".
*/
17 changes: 15 additions & 2 deletions backend/ipp.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* "$Id: ipp.c 12048 2014-07-18 14:26:14Z msweet $"
* "$Id: ipp.c 12624 2015-05-06 23:50:20Z msweet $"
*
* IPP backend for CUPS.
*
Expand Down Expand Up @@ -64,6 +64,7 @@ typedef struct _cups_monitor_s /**** Monitoring data ****/
version, /* IPP version */
job_id, /* Job ID for submitted job */
job_reasons, /* Job state reasons bits */
create_job, /* Support Create-Job? */
get_job_attrs; /* Support Get-Job-Attributes? */
const char *job_name; /* Job name for submitted job */
http_encryption_t encryption; /* Use encryption? */
Expand Down Expand Up @@ -1396,6 +1397,7 @@ main(int argc, /* I - Number of command-line args */
monitor.port = port;
monitor.version = version;
monitor.job_id = 0;
monitor.create_job = create_job;
monitor.get_job_attrs = get_job_attrs;
monitor.encryption = cupsEncryption();
monitor.job_state = IPP_JOB_PENDING;
Expand Down Expand Up @@ -2336,6 +2338,15 @@ monitor_printer(
if (cupsLastError() <= IPP_OK_CONFLICT)
password_tries = 0;

if (monitor->job_id == 0 && monitor->create_job)
{
/*
* No job-id yet, so continue...
*/

goto monitor_disconnect;
}

/*
* Check the status of the job itself...
*/
Expand Down Expand Up @@ -2485,6 +2496,8 @@ monitor_printer(
* Disconnect from the printer - we'll reconnect on the next poll...
*/

monitor_disconnect:

_httpDisconnect(http);
}

Expand Down Expand Up @@ -3756,5 +3769,5 @@ update_reasons(ipp_attribute_t *attr, /* I - printer-state-reasons or NULL */
}

/*
* End of "$Id: ipp.c 12048 2014-07-18 14:26:14Z msweet $".
* End of "$Id: ipp.c 12624 2015-05-06 23:50:20Z msweet $".
*/
Loading

0 comments on commit a215cf8

Please sign in to comment.