File tree 5 files changed +27
-2
lines changed
5 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ set(TIFFIMAGES
47
47
images/quad-lzw-compat.tiff
48
48
images/lzw-single-strip.tiff
49
49
images/testfax4.tiff
50
- images/testfax3_bug_513.tiff)
50
+ images/testfax3_bug_513.tiff
51
+ )
51
52
# TIFF images using old-jpeg. Unused unless JPEG support is enabled.
52
53
set (TIFFIMAGES_OJPEG)
53
54
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ REFFILES = \
170
170
refs/o-tiff2ps-PS2.ps \
171
171
refs/o-tiff2ps-PS3.ps \
172
172
refs/o-testfax4.tiff \
173
- refs/o-testfax3_bug_513.sh. tiff \
173
+ refs/o-testfax3_bug_513.tiff \
174
174
refs/o-deflate-last-strip-extra-data.tiff
175
175
176
176
# This list should contain all of the TIFF files in the 'images'
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ #
3
+ # check decoding of a CCITT Group 3 encoded TIFF
4
+ # hitting https://gitlab.com/libtiff/libtiff/-/issues/513
5
+ . ${srcdir:- .} /common.sh
6
+ infile=" ${IMAGES} /testfax3_bug_513.tiff"
7
+ outfile=" o-testfax3_bug_513.tiff"
8
+ rm -f $outfile
9
+ echo " $MEMCHECK ${TIFFCP} -c none $infile $outfile "
10
+ eval " $MEMCHECK ${TIFFCP} -c none $infile $outfile "
11
+ status=$?
12
+ if [ $status != 0 ] ; then
13
+ echo " Returned failed status $status !"
14
+ echo " Output (if any) is in \" ${outfile} \" ."
15
+ exit $status
16
+ fi
17
+ echo " $MEMCHECK ${TIFFCMP} $outfile ${REFS} /$outfile "
18
+ eval " $MEMCHECK ${TIFFCMP} $outfile ${REFS} /$outfile "
19
+ status=$?
20
+ if [ $status != 0 ] ; then
21
+ echo " Returned failed status $status !"
22
+ echo " \" ${outfile} \" differs from reference file."
23
+ exit $status
24
+ fi
You can’t perform that action at this time.
0 commit comments