~ubuntu-branches/ubuntu/precise/cups/precise-security

« back to all changes in this revision

Viewing changes to cgi-bin/var.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-12-03 09:05:49 UTC
  • mfrom: (97.1.4 precise-proposed)
  • Revision ID: package-import@ubuntu.com-20121203090549-z6f07kt2atlpxjpa
Tags: 1.5.3-0ubuntu5.1
* SECURITY UPDATE: privilege escalation via config file editing
  - debian/patches/CVE-2012-5519.patch: split configuration file into
    two, to isolate options that have a security impact.
  - debian/cups.install: also install cups-files.conf
  - debian/patches/removecvstag.patch: updated to remove tag from
    cups-files.conf.
  - CVE-2012-5519
* debian/control: remove libtiff5-dev alternate build-depends so this
  package can build in a schroot.
* NOTE: this package does _not_ include the changes from 1.5.3-0ubuntu5
  in precise-proposed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: var.c 9949 2011-08-31 04:58:33Z mike $"
 
2
 * "$Id: var.c 10367 2012-03-21 04:09:04Z mike $"
3
3
 *
4
4
 *   CGI form variable and array functions for CUPS.
5
5
 *
167
167
  _cgi_var_t    *v;                     /* Current variable */
168
168
 
169
169
 
 
170
  fputs("DEBUG: cgiClearVariables called.\n", stderr);
 
171
 
170
172
  for (v = form_vars, i = form_count; i > 0; v ++, i --)
171
173
  {
172
174
    _cupsStrFree(v->name);
401
403
  if (name == NULL || value == NULL || element < 0 || element > 100000)
402
404
    return;
403
405
 
 
406
  fprintf(stderr, "DEBUG: cgiSetArray: %s[%d]=\"%s\"\n", name, element, value);
 
407
 
404
408
  if ((var = cgi_find_variable(name)) == NULL)
405
409
  {
406
410
    cgi_add_variable(name, element, value);
532
536
  if (name == NULL || value == NULL)
533
537
    return;
534
538
 
 
539
  fprintf(stderr, "cgiSetVariable: %s=\"%s\"\n", name, value);
 
540
 
535
541
  if ((var = cgi_find_variable(name)) == NULL)
536
542
  {
537
543
    cgi_add_variable(name, 0, value);
1301
1307
 
1302
1308
 
1303
1309
/*
1304
 
 * End of "$Id: var.c 9949 2011-08-31 04:58:33Z mike $".
 
1310
 * End of "$Id: var.c 10367 2012-03-21 04:09:04Z mike $".
1305
1311
 */