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.

17 lines
566 B

  1. Description: Buffer overflow in gif2tiff
  2. Bug: http://bugzilla.maptools.org/show_bug.cgi?id=2450
  3. Bug-Debian: http://bugs.debian.org/719303
  4. Index: tiff-4.0.3/tools/gif2tiff.c
  5. ===================================================================
  6. --- tiff-4.0.3.orig/tools/gif2tiff.c 2013-08-22 11:46:11.960846910 -0400
  7. +++ tiff-4.0.3/tools/gif2tiff.c 2013-08-22 11:46:11.956846910 -0400
  8. @@ -333,6 +333,8 @@
  9. int status = 1;
  10. datasize = getc(infile);
  11. + if (datasize > 12)
  12. + return 0;
  13. clear = 1 << datasize;
  14. eoi = clear + 1;
  15. avail = clear + 2;