You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
670 B

  1. Description: use after free in tiff2pdf
  2. Bug: http://bugzilla.maptools.org/show_bug.cgi?id=2449
  3. Bug-Debian: http://bugs.debian.org/719303
  4. Index: tiff-4.0.3/tools/tiff2pdf.c
  5. ===================================================================
  6. --- tiff-4.0.3.orig/tools/tiff2pdf.c 2013-08-22 11:46:37.292847242 -0400
  7. +++ tiff-4.0.3/tools/tiff2pdf.c 2013-08-22 11:46:37.292847242 -0400
  8. @@ -2461,7 +2461,8 @@
  9. (unsigned long) t2p->tiff_datasize,
  10. TIFFFileName(input));
  11. t2p->t2p_error = T2P_ERR_ERROR;
  12. - _TIFFfree(buffer);
  13. + _TIFFfree(buffer);
  14. + return(0);
  15. } else {
  16. buffer=samplebuffer;
  17. t2p->tiff_datasize *= t2p->tiff_samplesperpixel;