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.

54 lines
2.3 KiB

  1. commit 8c9dbee088d8b43cdae47b9c5f711058bd1f17f1
  2. Author: erouault <erouault>
  3. Date: Tue Dec 13 18:15:48 2016 +0000
  4. * libtiff/tif_fax3.h: revert change done on 2016-01-09 that made
  5. Param member of TIFFFaxTabEnt structure a uint16 to reduce size of
  6. the binary. It happens that the Hylafax software uses the tables that
  7. follow this typedef (TIFFFaxMainTable, TIFFFaxWhiteTable,
  8. TIFFFaxBlackTable), also they are not in a public libtiff header.
  9. Raised by Lee Howard.
  10. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2636
  11. diff --git a/ChangeLog b/ChangeLog
  12. index ee6fd802..558db20e 100644
  13. --- a/ChangeLog
  14. +++ b/ChangeLog
  15. @@ -1,3 +1,13 @@
  16. +2016-12-13 Even Rouault <even.rouault at spatialys.com>
  17. +
  18. + * libtiff/tif_fax3.h: revert change done on 2016-01-09 that made
  19. + Param member of TIFFFaxTabEnt structure a uint16 to reduce size of
  20. + the binary. It happens that the Hylafax software uses the tables that
  21. + follow this typedef (TIFFFaxMainTable, TIFFFaxWhiteTable,
  22. + TIFFFaxBlackTable), also they are not in a public libtiff header.
  23. + Raised by Lee Howard.
  24. + Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2636
  25. +
  26. 2016-12-03 Even Rouault <even.rouault at spatialys.com>
  27. * tools/tiffcp.c: replace assert( (bps % 8) == 0 ) by a non assert check.
  28. diff --git a/libtiff/tif_fax3.h b/libtiff/tif_fax3.h
  29. index e0b2ca6b..45ce43f1 100644
  30. --- a/libtiff/tif_fax3.h
  31. +++ b/libtiff/tif_fax3.h
  32. @@ -1,4 +1,4 @@
  33. -/* $Id: tif_fax3.h,v 1.11 2016-01-23 21:20:34 erouault Exp $ */
  34. +/* $Id: tif_fax3.h,v 1.12 2016-12-13 18:15:48 erouault Exp $ */
  35. /*
  36. * Copyright (c) 1990-1997 Sam Leffler
  37. @@ -81,10 +81,12 @@ extern void _TIFFFax3fillruns(unsigned char*, uint32*, uint32*, uint32);
  38. #define S_MakeUp 11
  39. #define S_EOL 12
  40. +/* WARNING: do not change the layout of this structure as the Halyfax software */
  41. +/* really depends on it. See http://bugzilla.maptools.org/show_bug.cgi?id=2636 */
  42. typedef struct { /* state table entry */
  43. unsigned char State; /* see above */
  44. unsigned char Width; /* width of code in bits */
  45. - uint16 Param; /* unsigned 16-bit run length in bits */
  46. + uint32 Param; /* unsigned 32-bit run length in bits (holds on 16 bit actually, but cannot be changed. See above warning) */
  47. } TIFFFaxTabEnt;
  48. extern const TIFFFaxTabEnt TIFFFaxMainTable[];