~ubuntu-branches/ubuntu/vivid/tiff/vivid-proposed

« back to all changes in this revision

Viewing changes to tools/tiffdither.c

  • Committer: Package Import Robot
  • Author(s): Michael Gilbert
  • Date: 2013-06-17 01:27:17 UTC
  • Revision ID: package-import@ubuntu.com-20130617012717-s4yksbuv0ri97x5g
Tags: 4.0.2-6+nmu1
* Non-maintainer upload by the Security Team.
* Fix cve-2013-1960: heap-based buffer overlow in tiff2pdf
  (closes: #706675).
* Fix cve-2013-1961: stack-based buffer overflow in tiff2pdf
  (closes: #706674). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
                TIFFSetField(out, TIFFTAG_FILLORDER, fillorder);
261
261
        else
262
262
                CopyField(TIFFTAG_FILLORDER, shortv);
263
 
        sprintf(thing, "Dithered B&W version of %s", argv[optind]);
 
263
        snprintf(thing, sizeof(thing), "Dithered B&W version of %s", argv[optind]);
264
264
        TIFFSetField(out, TIFFTAG_IMAGEDESCRIPTION, thing);
265
265
        CopyField(TIFFTAG_PHOTOMETRIC, shortv);
266
266
        CopyField(TIFFTAG_ORIENTATION, shortv);