# Changes in TIFF v3.5.5

References
Current Version | v3.5.5 (tag Release-v3-5-5)
Previous Version | v3.5.4
Master Download Site | ftp://ftp.onshore.com/pub/libtiff/
Master HTTP Site | http://www.simplesystems.org/libtiff/

This document describes the changes made to the software between the previous and current versions (see above). If you don’t find something listed here, then it was not done in this timeframe, or it was not considered important enough to be mentioned. The following information is located here:

## Software configuration changes

- `configure`: added test for libc6 for linux targets. Bug reported by Stanislav Brabec.

- `configure`: fixed bugs in sed scripts (applied sed script `s:/@:s;@:;s:/s;;:;:` to configure). fix submitted by Stanislav Brabec.

- `tools/iptcutil` was not in files list, and wasn’t being added to tar archive. `Updated Makefile.in`.

- Added 3.5 docs to `html/Makefile.in`. Thanks to Stanislav Brabec

- Fixed `tools/tiffcmp` so that `stopondiff` testing works. Patch care of Joseph Orost.

- Added `fax3sm_winnt.c` to distribution list in `Makefile.in`.

- Added `libtiff/libtiff.def` to `TIFFILES` distribution list.

## Library changes

- `tif_fax3.c`: Fixed serious bug introduced during the `uint16->uint32` conversion for the run arrays.

- Set `td_sampleformat` default to `SAMPLEFORMAT_UINT` instead of `SAMPLEFORMAT_VOID` in `TIFFDefaultDirectory()` in `tif_dir.c`.

- Added “GetDefaulted” support for `TIFFTAG_SAMPLEFORMAT` in `tif_aux.c`.

- Patched `tif_fax3.c` so that `dsp->runs` is allocated a bit bigger to avoid overruns encountered with `frle_bug.tif`.

- Modified `tif_unix.c` to support 2-4GB seeks if `USE_64BIT_API` is set to 1, and added default (off) setting in `tiffconf.h`. This should eventually be set by the configure script somehow. The original work on all these 2-4GB changes was done by Peter Smith.

- Modified `tif_win32.c` to support 2-4GB seeks.

- tentatively changed `toff_t` to be unsigned instead of signed to facilitate support for 2-4GB files.

- Updated a variety of files to use `toff_t`. Fixed some mixups between `toff_t` and `tsize_t`.

- Set `tif_rawdatasize` to zero when freeing raw data buffer in `TIFFWriteDirectory()`.

- Enabled `REWRITE_HACK` in `tif_write.c` by default.

- Fix bug in `tif_write.c` when switching between reading one directory and writing to another.

- Made `TIFFWriteCheck()` public, and added `TIFFCreateDirectory()`

- Added TIFFmemory functions to `libtiff.def`.

- Added `libtiff/libtiff.def` to `TIFFILES` distribution list.

## Tools changes

- fax2ps:

  - Fixed mixup of width and height in bounding box statement as per submission by Nalin Dahyabhai.

  - Modified `printruns` to take `uint32` instead of `uint16`. Patch courtesy of Bernt Herd.

- Largely reimplemented `contrib/addtiffo` to avoid temp files, updating the TIFF file in place. Fixed a few other bugs to.

- Altered descriptions in tools to reflect “by default” lzw not supported

## LZW compression kit changes

- created `mangle-src.sh` – sed scripts to munge src into LZW enabled format. Thanks to Stanislav Brabec.

- created `Makefile`

- merged `tif_dir.c` with current source.

- Created lzw compression kit, as a new CVS module (`libtiff-lzw-compression-kit`).

- Updated `index.html` to note lzw compression kit.