diff options
author | Su_Laus <sulau@freenet.de> | 2023-02-08 21:36:18 +0100 |
---|---|---|
committer | Su_Laus <sulau@freenet.de> | 2023-02-08 21:36:18 +0100 |
commit | aa2cd98b3ef5a3de745b10d810ec7e6e94868efd (patch) | |
tree | 6a89304802241f30c7ca66262aebe854dcd8bae3 /libtiff/tif_dir.c | |
parent | feb8db628d38835bd9442d1fcbaf979c05487490 (diff) | |
download | libtiff-git-aa2cd98b3ef5a3de745b10d810ec7e6e94868efd.tar.gz |
Fix 484 TIFFDirectory td_fieldsset uses unsigned long which can be 32 or 64 bits.
Closes #484
Diffstat (limited to 'libtiff/tif_dir.c')
-rw-r--r-- | libtiff/tif_dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtiff/tif_dir.c b/libtiff/tif_dir.c index 8c275e04..49d909d2 100644 --- a/libtiff/tif_dir.c +++ b/libtiff/tif_dir.c @@ -1621,7 +1621,7 @@ void TIFFFreeDirectory(TIFF *tif) TIFFDirectory *td = &tif->tif_dir; int i; - _TIFFmemset(td->td_fieldsset, 0, FIELD_SETLONGS); + _TIFFmemset(td->td_fieldsset, 0, sizeof(td->td_fieldsset)); CleanupField(td_sminsamplevalue); CleanupField(td_smaxsamplevalue); CleanupField(td_colormap[0]); |