diff options
author | Su Laus <sulau@freenet.de> | 2021-11-26 15:02:35 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2021-11-26 15:02:35 +0000 |
commit | 7db4f2b62206b9cba6cda538e0f296df0ac371bd (patch) | |
tree | 395b0eb2770e4b403fc495cde33a96dda7a2d94e /test | |
parent | 29219a5bd14040d60e376324a52ef91b68808143 (diff) | |
download | libtiff-git-7db4f2b62206b9cba6cda538e0f296df0ac371bd.tar.gz |
Fix Segmentation fault printing GPS directory if Altitude tag is present (tif_print.c/tiffinfo.c)
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | test/Makefile.am | 3 | ||||
-rw-r--r-- | test/images/custom_dir_EXIF_GPS.tiff | bin | 0 -> 2504 bytes |
3 files changed, 4 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 01b25a8d..53f8db73 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -111,6 +111,7 @@ set(TESTSCRIPTS # subdirectory which are intended to be used as input images for # tests. All of these files should use the extension ".tiff". set(TIFFIMAGES + images/custom_dir_EXIF_GPS.tiff images/logluv-3c-16b.tiff images/minisblack-1c-16b.tiff images/minisblack-1c-8b.tiff @@ -411,6 +412,7 @@ add_convert_test_multi(tiffcp thumbnail "" thumbnail "g3:1d" "" "" add_reader_test(tiffdump "" "images/miniswhite-1c-1b.tiff") # tiffinfo +add_reader_test(tiffinfo "-c -D -d -j -s" "images/custom_dir_EXIF_GPS.tiff") add_reader_test(tiffinfo "-c -D -d -j -s" "images/minisblack-1c-16b.tiff") # tiffcp split/join diff --git a/test/Makefile.am b/test/Makefile.am index 27d293e2..cb338884 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -184,7 +184,8 @@ TIFFIMAGES = \ images/ojpeg_chewey_subsamp21_multi_strip.tiff \ images/ojpeg_single_strip_no_rowsperstrip.tiff \ images/testfax4.tiff \ - images/deflate-last-strip-extra-data.tiff + images/deflate-last-strip-extra-data.tiff \ + images/custom_dir_EXIF_GPS.tiff PNMIMAGES = \ images/minisblack-1c-8b.pgm \ diff --git a/test/images/custom_dir_EXIF_GPS.tiff b/test/images/custom_dir_EXIF_GPS.tiff Binary files differnew file mode 100644 index 00000000..e34e6dc4 --- /dev/null +++ b/test/images/custom_dir_EXIF_GPS.tiff |