~ubuntu-branches/ubuntu/vivid/ghostscript/vivid-security

« back to all changes in this revision

Viewing changes to base/gxclmem.c

  • Committer: Package Import Robot
  • Author(s): Till Kamppeter
  • Date: 2013-08-09 20:01:36 UTC
  • mfrom: (1.1.37)
  • Revision ID: package-import@ubuntu.com-20130809200136-amb6zrr7hnjb5jq9
Tags: 9.08~rc1~dfsg-0ubuntu1
* New upstream release
   - Ghostscript 9.08rc1.
   - We are using the system's liblcms2 and libopenjpeg now.
* debian/patches/020130401-852e545-pxl-xl-driver-produced-drawing-commands-without-setting-color-space.patch:
  Removed patch backported from upstream.
* debian/patches/ojdk-8007925+8007926.patch,
  debian/patches/ojdk-8007927.patch,
  debian/patches/ojdk-8007929.patch,
  debian/patches/ojdk-8009654.patch: Removed patches on build in liblcms2, we
  use the system's liblcms2 now.
* debian/patches/2001_docdir_fix_for_debian.patch: Manually updated to new
  upstream source code.
* debian/patches/2003_support_multiarch.patch: Refreshed with quilt.
* debian/control: Added build dependencies on liblcms2-dev and
  libopenjpeg-dev.
* debian/rules: Check for removed lcms2/ and openjpeg/ subdirectories in
  the repackaging check again, also set build options for shared liblcms2
  and libopenjpeg libraries.
* debian/rules: Makefile.in and configure.ac are in the root directory of
  the source now and do not need to get linked from base/. Also there is no
  gstoraster and gstopxl CUPS filter in the package any more and no
  "install-cups" make target any more.
* debian/control, debian/rules, debian/ghostscript-cups.install,
  debian/ghostscript-cups.ppd-updater: Removed the ghostscript-cups binary
  package. The files are now provided by cups-filters.
* debian/symbols.common: Updated for new upstream source. Applied patch
  which dpkg-gensymbols generated for debian/libgs9.symbols to this file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include "gx.h"
20
20
#include "gserrors.h"
21
21
#include "gxclmem.h"
 
22
#include "gssprintf.h"
22
23
 
23
24
#ifdef PACIFY_VALGRIND
24
 
#include <valgrind/helgrind.h>
 
25
#include "valgrind.h"
25
26
#endif
26
27
 
27
28
/*
252
253
        MEMFILE *base_f = NULL;
253
254
 
254
255
        /* reopening an existing file. */
255
 
        code = sscanf(fname+1, "%p", &base_f);
 
256
        code = gs_sscanf(fname+1, "%p", &base_f);
256
257
        if (code != 1) {
257
258
            code = gs_note_error(gs_error_ioerror);
258
259
            goto finish;
401
402
 
402
403
    /* Return the address of this memfile as a string for use in future clist_fopen calls */
403
404
    fname[0] = 0xff;        /* a flag that this is a memfile name */
404
 
    sprintf(fname+1, "%p", f);
 
405
    gs_sprintf(fname+1, "%p", f);
405
406
 
406
407
#ifdef DEBUG
407
408
        tot_compressed = 0;
533
534
    MEMFILE *f;
534
535
 
535
536
    /* memfile file names begin with a flag byte == 0xff */
536
 
    if (fname[0] == '\377' && (code = sscanf(fname+1, "%p", &f) == 1)) {
 
537
    if (fname[0] == '\377' && (code = gs_sscanf(fname+1, "%p", &f) == 1)) {
537
538
        return memfile_fclose((clist_file_ptr)f, fname, true);
538
539
    } else
539
540
        return_error(gs_error_invalidfileaccess);