Raspbian Package Auto-Building

Build log for checkit-tiff (0.4.2-1) on armhf

checkit-tiff0.4.2-1armhf → 2021-08-31 05:33:14

sbuild (Debian sbuild) 0.71.0 (24 Aug 2016) on testwandboard

+==============================================================================+
| checkit-tiff 0.4.2-1 (armhf)                 Tue, 31 Aug 2021 05:24:37 +0000 |
+==============================================================================+

Package: checkit-tiff
Version: 0.4.2-1
Source Version: 0.4.2-1
Distribution: bookworm-staging
Machine Architecture: armhf
Host Architecture: armhf
Build Architecture: armhf

I: NOTICE: Log filtering will replace 'var/lib/schroot/mount/bookworm-staging-armhf-sbuild-e7eb7dc2-a1b8-4fc3-993c-7f3101a7e9eb' with '<<CHROOT>>'

+------------------------------------------------------------------------------+
| Update chroot                                                                |
+------------------------------------------------------------------------------+

Get:1 http://172.17.0.1/private bookworm-staging InRelease [11.3 kB]
Get:2 http://172.17.0.1/private bookworm-staging/main Sources [12.3 MB]
Get:3 http://172.17.0.1/private bookworm-staging/main armhf Packages [13.4 MB]
Fetched 25.7 MB in 29s (873 kB/s)
Reading package lists...
W: No sandbox user '_apt' on the system, can not drop privileges

+------------------------------------------------------------------------------+
| Fetch source files                                                           |
+------------------------------------------------------------------------------+


Check APT
---------

Checking available source versions...

Download source files with APT
------------------------------

Reading package lists...
NOTICE: 'checkit-tiff' packaging is maintained in the 'Git' version control system at:
https://salsa.debian.org/debian-phototools-team/checkit-tiff.git
Please use:
git clone https://salsa.debian.org/debian-phototools-team/checkit-tiff.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 941 kB of source archives.
Get:1 http://172.17.0.1/private bookworm-staging/main checkit-tiff 0.4.2-1 (dsc) [2064 B]
Get:2 http://172.17.0.1/private bookworm-staging/main checkit-tiff 0.4.2-1 (tar) [936 kB]
Get:3 http://172.17.0.1/private bookworm-staging/main checkit-tiff 0.4.2-1 (diff) [2956 B]
Fetched 941 kB in 0s (2002 kB/s)
Download complete and in download only mode
I: NOTICE: Log filtering will replace 'build/checkit-tiff-5c5SbB/checkit-tiff-0.4.2' with '<<PKGBUILDDIR>>'
I: NOTICE: Log filtering will replace 'build/checkit-tiff-5c5SbB' with '<<BUILDDIR>>'

+------------------------------------------------------------------------------+
| Install build-essential                                                      |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: build-essential, fakeroot
Filtered Build-Depends: build-essential, fakeroot
dpkg-deb: building package 'sbuild-build-depends-core-dummy' in '/<<BUILDDIR>>/resolver-28mYC6/apt_archive/sbuild-build-depends-core-dummy.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning:   sbuild-build-depends-core-dummy
dpkg-scanpackages: info: Wrote 1 entries to output Packages file.
gpg: keybox '/<<BUILDDIR>>/resolver-28mYC6/gpg/pubring.kbx' created
gpg: /<<BUILDDIR>>/resolver-28mYC6/gpg/trustdb.gpg: trustdb created
gpg: key 35506D9A48F77B2E: public key "Sbuild Signer (Sbuild Build Dependency Archive Key) <buildd-tools-devel@lists.alioth.debian.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: key 35506D9A48F77B2E: "Sbuild Signer (Sbuild Build Dependency Archive Key) <buildd-tools-devel@lists.alioth.debian.org>" not changed
gpg: key 35506D9A48F77B2E: secret key imported
gpg: Total number processed: 1
gpg:              unchanged: 1
gpg:       secret keys read: 1
gpg:   secret keys imported: 1
gpg: using "Sbuild Signer" as default secret key for signing
Ign:1 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ InRelease
Get:2 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ Release [957 B]
Get:3 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ Release.gpg [370 B]
Get:4 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ Sources [349 B]
Get:5 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ Packages [431 B]
Fetched 2107 B in 1s (2639 B/s)
Reading package lists...
W: No sandbox user '_apt' on the system, can not drop privileges
Reading package lists...

Install core build dependencies (apt-based resolver)
----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  netbase
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  sbuild-build-depends-core-dummy
0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
Need to get 848 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ sbuild-build-depends-core-dummy 0.invalid.0 [848 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 848 B in 0s (22.8 kB/s)
Selecting previously unselected package sbuild-build-depends-core-dummy.
(Reading database ... 12488 files and directories currently installed.)
Preparing to unpack .../sbuild-build-depends-core-dummy_0.invalid.0_armhf.deb ...
Unpacking sbuild-build-depends-core-dummy (0.invalid.0) ...
Setting up sbuild-build-depends-core-dummy (0.invalid.0) ...
W: No sandbox user '_apt' on the system, can not drop privileges

+------------------------------------------------------------------------------+
| Check architectures                                                          |
+------------------------------------------------------------------------------+

Arch check ok (armhf included in any)

+------------------------------------------------------------------------------+
| Install package build dependencies                                           |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: debhelper-compat (= 13), cmake, libpcre3-dev
Filtered Build-Depends: debhelper-compat (= 13), cmake, libpcre3-dev
dpkg-deb: building package 'sbuild-build-depends-checkit-tiff-dummy' in '/<<BUILDDIR>>/resolver-28mYC6/apt_archive/sbuild-build-depends-checkit-tiff-dummy.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning:   sbuild-build-depends-checkit-tiff-dummy sbuild-build-depends-core-dummy
dpkg-scanpackages: info: Wrote 2 entries to output Packages file.
gpg: using "Sbuild Signer" as default secret key for signing
Ign:1 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ InRelease
Get:2 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ Release [963 B]
Get:3 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ Release.gpg [370 B]
Get:4 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ Sources [507 B]
Get:5 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ Packages [588 B]
Fetched 2428 B in 1s (3366 B/s)
Reading package lists...
W: No sandbox user '_apt' on the system, can not drop privileges
Reading package lists...

Install checkit-tiff build dependencies (apt-based resolver)
------------------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
  netbase
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  autoconf automake autopoint autotools-dev bsdextrautils cmake cmake-data
  debhelper dh-autoreconf dh-strip-nondeterminism dwz file gettext
  gettext-base groff-base intltool-debian libarchive-zip-perl libarchive13
  libbrotli1 libcurl4 libdebhelper-perl libelf1 libexpat1
  libfile-stripnondeterminism-perl libicu67 libjsoncpp24 libmagic-mgc
  libmagic1 libncurses6 libnghttp2-14 libpcre16-3 libpcre3-dev libpcre32-3
  libpcrecpp0v5 libpipeline1 libprocps8 libpsl5 librhash0 librtmp1 libsigsegv2
  libssh2-1 libsub-override-perl libtool libuchardet0 libuv1 libxml2 m4 man-db
  po-debconf procps sensible-utils
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc cmake-doc ninja-build dh-make
  gettext-doc libasprintf-dev libgettextpo-dev groff lrzip libtool-doc
  gfortran | fortran95-compiler gcj-jdk m4-doc apparmor less www-browser
  libmail-box-perl
Recommended packages:
  curl | wget | lynx ca-certificates libarchive-cpio-perl libgpm2 publicsuffix
  libltdl-dev libmail-sendmail-perl psmisc
The following NEW packages will be installed:
  autoconf automake autopoint autotools-dev bsdextrautils cmake cmake-data
  debhelper dh-autoreconf dh-strip-nondeterminism dwz file gettext
  gettext-base groff-base intltool-debian libarchive-zip-perl libarchive13
  libbrotli1 libcurl4 libdebhelper-perl libelf1 libexpat1
  libfile-stripnondeterminism-perl libicu67 libjsoncpp24 libmagic-mgc
  libmagic1 libncurses6 libnghttp2-14 libpcre16-3 libpcre3-dev libpcre32-3
  libpcrecpp0v5 libpipeline1 libprocps8 libpsl5 librhash0 librtmp1 libsigsegv2
  libssh2-1 libsub-override-perl libtool libuchardet0 libuv1 libxml2 m4 man-db
  po-debconf procps sbuild-build-depends-checkit-tiff-dummy sensible-utils
0 upgraded, 52 newly installed, 0 to remove and 41 not upgraded.
Need to get 25.7 MB of archives.
After this operation, 101 MB of additional disk space will be used.
Get:1 copy:/<<BUILDDIR>>/resolver-28mYC6/apt_archive ./ sbuild-build-depends-checkit-tiff-dummy 0.invalid.0 [872 B]
Get:2 http://172.17.0.1/private bookworm-staging/main armhf bsdextrautils armhf 2.37.2-1 [135 kB]
Get:3 http://172.17.0.1/private bookworm-staging/main armhf libuchardet0 armhf 0.0.7-1 [65.0 kB]
Get:4 http://172.17.0.1/private bookworm-staging/main armhf groff-base armhf 1.22.4-6 [793 kB]
Get:5 http://172.17.0.1/private bookworm-staging/main armhf libpipeline1 armhf 1.5.3-1 [29.9 kB]
Get:6 http://172.17.0.1/private bookworm-staging/main armhf man-db armhf 2.9.4-2 [1307 kB]
Get:7 http://172.17.0.1/private bookworm-staging/main armhf libncurses6 armhf 6.2+20201114-2 [79.9 kB]
Get:8 http://172.17.0.1/private bookworm-staging/main armhf libprocps8 armhf 2:3.3.17-5 [60.5 kB]
Get:9 http://172.17.0.1/private bookworm-staging/main armhf procps armhf 2:3.3.17-5 [475 kB]
Get:10 http://172.17.0.1/private bookworm-staging/main armhf sensible-utils all 0.0.16 [21.4 kB]
Get:11 http://172.17.0.1/private bookworm-staging/main armhf libmagic-mgc armhf 1:5.39-3 [273 kB]
Get:12 http://172.17.0.1/private bookworm-staging/main armhf libmagic1 armhf 1:5.39-3 [117 kB]
Get:13 http://172.17.0.1/private bookworm-staging/main armhf file armhf 1:5.39-3 [68.0 kB]
Get:14 http://172.17.0.1/private bookworm-staging/main armhf gettext-base armhf 0.21-4 [171 kB]
Get:15 http://172.17.0.1/private bookworm-staging/main armhf libsigsegv2 armhf 2.13-1 [34.3 kB]
Get:16 http://172.17.0.1/private bookworm-staging/main armhf m4 armhf 1.4.18-5 [186 kB]
Get:17 http://172.17.0.1/private bookworm-staging/main armhf autoconf all 2.69-14 [313 kB]
Get:18 http://172.17.0.1/private bookworm-staging/main armhf autotools-dev all 20180224.1+nmu1 [77.1 kB]
Get:19 http://172.17.0.1/private bookworm-staging/main armhf automake all 1:1.16.3-2 [814 kB]
Get:20 http://172.17.0.1/private bookworm-staging/main armhf autopoint all 0.21-4 [510 kB]
Get:21 http://172.17.0.1/private bookworm-staging/main armhf cmake-data all 3.18.4-2+rpi1 [1725 kB]
Get:22 http://172.17.0.1/private bookworm-staging/main armhf libicu67 armhf 67.1-7 [8291 kB]
Get:23 http://172.17.0.1/private bookworm-staging/main armhf libxml2 armhf 2.9.10+dfsg-6.7 [580 kB]
Get:24 http://172.17.0.1/private bookworm-staging/main armhf libarchive13 armhf 3.4.3-2 [294 kB]
Get:25 http://172.17.0.1/private bookworm-staging/main armhf libbrotli1 armhf 1.0.9-2+b1 [261 kB]
Get:26 http://172.17.0.1/private bookworm-staging/main armhf libnghttp2-14 armhf 1.43.0-1 [65.3 kB]
Get:27 http://172.17.0.1/private bookworm-staging/main armhf libpsl5 armhf 0.21.0-1.2 [56.2 kB]
Get:28 http://172.17.0.1/private bookworm-staging/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2+b2 [54.2 kB]
Get:29 http://172.17.0.1/private bookworm-staging/main armhf libssh2-1 armhf 1.9.0-3 [151 kB]
Get:30 http://172.17.0.1/private bookworm-staging/main armhf libcurl4 armhf 7.74.0-1.3 [305 kB]
Get:31 http://172.17.0.1/private bookworm-staging/main armhf libexpat1 armhf 2.2.10-2 [73.4 kB]
Get:32 http://172.17.0.1/private bookworm-staging/main armhf libjsoncpp24 armhf 1.9.4-4 [67.0 kB]
Get:33 http://172.17.0.1/private bookworm-staging/main armhf librhash0 armhf 1.4.1-2 [141 kB]
Get:34 http://172.17.0.1/private bookworm-staging/main armhf libuv1 armhf 1.40.0-2 [119 kB]
Get:35 http://172.17.0.1/private bookworm-staging/main armhf cmake armhf 3.18.4-2+rpi1 [3118 kB]
Get:36 http://172.17.0.1/private bookworm-staging/main armhf libdebhelper-perl all 13.4.1 [191 kB]
Get:37 http://172.17.0.1/private bookworm-staging/main armhf libtool all 2.4.6-15 [513 kB]
Get:38 http://172.17.0.1/private bookworm-staging/main armhf dh-autoreconf all 20 [17.1 kB]
Get:39 http://172.17.0.1/private bookworm-staging/main armhf libarchive-zip-perl all 1.68-1 [104 kB]
Get:40 http://172.17.0.1/private bookworm-staging/main armhf libsub-override-perl all 0.09-2 [10.2 kB]
Get:41 http://172.17.0.1/private bookworm-staging/main armhf libfile-stripnondeterminism-perl all 1.12.0-1 [26.3 kB]
Get:42 http://172.17.0.1/private bookworm-staging/main armhf dh-strip-nondeterminism all 1.12.0-1 [15.4 kB]
Get:43 http://172.17.0.1/private bookworm-staging/main armhf libelf1 armhf 0.185-2 [168 kB]
Get:44 http://172.17.0.1/private bookworm-staging/main armhf dwz armhf 0.14-1 [83.0 kB]
Get:45 http://172.17.0.1/private bookworm-staging/main armhf gettext armhf 0.21-4 [1215 kB]
Get:46 http://172.17.0.1/private bookworm-staging/main armhf intltool-debian all 0.35.0+20060710.5 [26.8 kB]
Get:47 http://172.17.0.1/private bookworm-staging/main armhf po-debconf all 1.0.21+nmu1 [248 kB]
Get:48 http://172.17.0.1/private bookworm-staging/main armhf debhelper all 13.4.1 [1039 kB]
Get:49 http://172.17.0.1/private bookworm-staging/main armhf libpcre16-3 armhf 2:8.39-13 [235 kB]
Get:50 http://172.17.0.1/private bookworm-staging/main armhf libpcre32-3 armhf 2:8.39-13 [228 kB]
Get:51 http://172.17.0.1/private bookworm-staging/main armhf libpcrecpp0v5 armhf 2:8.39-13 [150 kB]
Get:52 http://172.17.0.1/private bookworm-staging/main armhf libpcre3-dev armhf 2:8.39-13 [566 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 25.7 MB in 9s (2778 kB/s)
Selecting previously unselected package bsdextrautils.
(Reading database ... 12488 files and directories currently installed.)
Preparing to unpack .../00-bsdextrautils_2.37.2-1_armhf.deb ...
Unpacking bsdextrautils (2.37.2-1) ...
Selecting previously unselected package libuchardet0:armhf.
Preparing to unpack .../01-libuchardet0_0.0.7-1_armhf.deb ...
Unpacking libuchardet0:armhf (0.0.7-1) ...
Selecting previously unselected package groff-base.
Preparing to unpack .../02-groff-base_1.22.4-6_armhf.deb ...
Unpacking groff-base (1.22.4-6) ...
Selecting previously unselected package libpipeline1:armhf.
Preparing to unpack .../03-libpipeline1_1.5.3-1_armhf.deb ...
Unpacking libpipeline1:armhf (1.5.3-1) ...
Selecting previously unselected package man-db.
Preparing to unpack .../04-man-db_2.9.4-2_armhf.deb ...
Unpacking man-db (2.9.4-2) ...
Selecting previously unselected package libncurses6:armhf.
Preparing to unpack .../05-libncurses6_6.2+20201114-2_armhf.deb ...
Unpacking libncurses6:armhf (6.2+20201114-2) ...
Selecting previously unselected package libprocps8:armhf.
Preparing to unpack .../06-libprocps8_2%3a3.3.17-5_armhf.deb ...
Unpacking libprocps8:armhf (2:3.3.17-5) ...
Selecting previously unselected package procps.
Preparing to unpack .../07-procps_2%3a3.3.17-5_armhf.deb ...
Unpacking procps (2:3.3.17-5) ...
Selecting previously unselected package sensible-utils.
Preparing to unpack .../08-sensible-utils_0.0.16_all.deb ...
Unpacking sensible-utils (0.0.16) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../09-libmagic-mgc_1%3a5.39-3_armhf.deb ...
Unpacking libmagic-mgc (1:5.39-3) ...
Selecting previously unselected package libmagic1:armhf.
Preparing to unpack .../10-libmagic1_1%3a5.39-3_armhf.deb ...
Unpacking libmagic1:armhf (1:5.39-3) ...
Selecting previously unselected package file.
Preparing to unpack .../11-file_1%3a5.39-3_armhf.deb ...
Unpacking file (1:5.39-3) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../12-gettext-base_0.21-4_armhf.deb ...
Unpacking gettext-base (0.21-4) ...
Selecting previously unselected package libsigsegv2:armhf.
Preparing to unpack .../13-libsigsegv2_2.13-1_armhf.deb ...
Unpacking libsigsegv2:armhf (2.13-1) ...
Selecting previously unselected package m4.
Preparing to unpack .../14-m4_1.4.18-5_armhf.deb ...
Unpacking m4 (1.4.18-5) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../15-autoconf_2.69-14_all.deb ...
Unpacking autoconf (2.69-14) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../16-autotools-dev_20180224.1+nmu1_all.deb ...
Unpacking autotools-dev (20180224.1+nmu1) ...
Selecting previously unselected package automake.
Preparing to unpack .../17-automake_1%3a1.16.3-2_all.deb ...
Unpacking automake (1:1.16.3-2) ...
Selecting previously unselected package autopoint.
Preparing to unpack .../18-autopoint_0.21-4_all.deb ...
Unpacking autopoint (0.21-4) ...
Selecting previously unselected package cmake-data.
Preparing to unpack .../19-cmake-data_3.18.4-2+rpi1_all.deb ...
Unpacking cmake-data (3.18.4-2+rpi1) ...
Selecting previously unselected package libicu67:armhf.
Preparing to unpack .../20-libicu67_67.1-7_armhf.deb ...
Unpacking libicu67:armhf (67.1-7) ...
Selecting previously unselected package libxml2:armhf.
Preparing to unpack .../21-libxml2_2.9.10+dfsg-6.7_armhf.deb ...
Unpacking libxml2:armhf (2.9.10+dfsg-6.7) ...
Selecting previously unselected package libarchive13:armhf.
Preparing to unpack .../22-libarchive13_3.4.3-2_armhf.deb ...
Unpacking libarchive13:armhf (3.4.3-2) ...
Selecting previously unselected package libbrotli1:armhf.
Preparing to unpack .../23-libbrotli1_1.0.9-2+b1_armhf.deb ...
Unpacking libbrotli1:armhf (1.0.9-2+b1) ...
Selecting previously unselected package libnghttp2-14:armhf.
Preparing to unpack .../24-libnghttp2-14_1.43.0-1_armhf.deb ...
Unpacking libnghttp2-14:armhf (1.43.0-1) ...
Selecting previously unselected package libpsl5:armhf.
Preparing to unpack .../25-libpsl5_0.21.0-1.2_armhf.deb ...
Unpacking libpsl5:armhf (0.21.0-1.2) ...
Selecting previously unselected package librtmp1:armhf.
Preparing to unpack .../26-librtmp1_2.4+20151223.gitfa8646d.1-2+b2_armhf.deb ...
Unpacking librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b2) ...
Selecting previously unselected package libssh2-1:armhf.
Preparing to unpack .../27-libssh2-1_1.9.0-3_armhf.deb ...
Unpacking libssh2-1:armhf (1.9.0-3) ...
Selecting previously unselected package libcurl4:armhf.
Preparing to unpack .../28-libcurl4_7.74.0-1.3_armhf.deb ...
Unpacking libcurl4:armhf (7.74.0-1.3) ...
Selecting previously unselected package libexpat1:armhf.
Preparing to unpack .../29-libexpat1_2.2.10-2_armhf.deb ...
Unpacking libexpat1:armhf (2.2.10-2) ...
Selecting previously unselected package libjsoncpp24:armhf.
Preparing to unpack .../30-libjsoncpp24_1.9.4-4_armhf.deb ...
Unpacking libjsoncpp24:armhf (1.9.4-4) ...
Selecting previously unselected package librhash0:armhf.
Preparing to unpack .../31-librhash0_1.4.1-2_armhf.deb ...
Unpacking librhash0:armhf (1.4.1-2) ...
Selecting previously unselected package libuv1:armhf.
Preparing to unpack .../32-libuv1_1.40.0-2_armhf.deb ...
Unpacking libuv1:armhf (1.40.0-2) ...
Selecting previously unselected package cmake.
Preparing to unpack .../33-cmake_3.18.4-2+rpi1_armhf.deb ...
Unpacking cmake (3.18.4-2+rpi1) ...
Selecting previously unselected package libdebhelper-perl.
Preparing to unpack .../34-libdebhelper-perl_13.4.1_all.deb ...
Unpacking libdebhelper-perl (13.4.1) ...
Selecting previously unselected package libtool.
Preparing to unpack .../35-libtool_2.4.6-15_all.deb ...
Unpacking libtool (2.4.6-15) ...
Selecting previously unselected package dh-autoreconf.
Preparing to unpack .../36-dh-autoreconf_20_all.deb ...
Unpacking dh-autoreconf (20) ...
Selecting previously unselected package libarchive-zip-perl.
Preparing to unpack .../37-libarchive-zip-perl_1.68-1_all.deb ...
Unpacking libarchive-zip-perl (1.68-1) ...
Selecting previously unselected package libsub-override-perl.
Preparing to unpack .../38-libsub-override-perl_0.09-2_all.deb ...
Unpacking libsub-override-perl (0.09-2) ...
Selecting previously unselected package libfile-stripnondeterminism-perl.
Preparing to unpack .../39-libfile-stripnondeterminism-perl_1.12.0-1_all.deb ...
Unpacking libfile-stripnondeterminism-perl (1.12.0-1) ...
Selecting previously unselected package dh-strip-nondeterminism.
Preparing to unpack .../40-dh-strip-nondeterminism_1.12.0-1_all.deb ...
Unpacking dh-strip-nondeterminism (1.12.0-1) ...
Selecting previously unselected package libelf1:armhf.
Preparing to unpack .../41-libelf1_0.185-2_armhf.deb ...
Unpacking libelf1:armhf (0.185-2) ...
Selecting previously unselected package dwz.
Preparing to unpack .../42-dwz_0.14-1_armhf.deb ...
Unpacking dwz (0.14-1) ...
Selecting previously unselected package gettext.
Preparing to unpack .../43-gettext_0.21-4_armhf.deb ...
Unpacking gettext (0.21-4) ...
Selecting previously unselected package intltool-debian.
Preparing to unpack .../44-intltool-debian_0.35.0+20060710.5_all.deb ...
Unpacking intltool-debian (0.35.0+20060710.5) ...
Selecting previously unselected package po-debconf.
Preparing to unpack .../45-po-debconf_1.0.21+nmu1_all.deb ...
Unpacking po-debconf (1.0.21+nmu1) ...
Selecting previously unselected package debhelper.
Preparing to unpack .../46-debhelper_13.4.1_all.deb ...
Unpacking debhelper (13.4.1) ...
Selecting previously unselected package libpcre16-3:armhf.
Preparing to unpack .../47-libpcre16-3_2%3a8.39-13_armhf.deb ...
Unpacking libpcre16-3:armhf (2:8.39-13) ...
Selecting previously unselected package libpcre32-3:armhf.
Preparing to unpack .../48-libpcre32-3_2%3a8.39-13_armhf.deb ...
Unpacking libpcre32-3:armhf (2:8.39-13) ...
Selecting previously unselected package libpcrecpp0v5:armhf.
Preparing to unpack .../49-libpcrecpp0v5_2%3a8.39-13_armhf.deb ...
Unpacking libpcrecpp0v5:armhf (2:8.39-13) ...
Selecting previously unselected package libpcre3-dev:armhf.
Preparing to unpack .../50-libpcre3-dev_2%3a8.39-13_armhf.deb ...
Unpacking libpcre3-dev:armhf (2:8.39-13) ...
Selecting previously unselected package sbuild-build-depends-checkit-tiff-dummy.
Preparing to unpack .../51-sbuild-build-depends-checkit-tiff-dummy_0.invalid.0_armhf.deb ...
Unpacking sbuild-build-depends-checkit-tiff-dummy (0.invalid.0) ...
Setting up libexpat1:armhf (2.2.10-2) ...
Setting up libpcrecpp0v5:armhf (2:8.39-13) ...
Setting up libpipeline1:armhf (1.5.3-1) ...
Setting up libpsl5:armhf (0.21.0-1.2) ...
Setting up bsdextrautils (2.37.2-1) ...
update-alternatives: using /usr/bin/write.ul to provide /usr/bin/write (write) in auto mode
Setting up libpcre16-3:armhf (2:8.39-13) ...
Setting up libicu67:armhf (67.1-7) ...
Setting up libmagic-mgc (1:5.39-3) ...
Setting up libarchive-zip-perl (1.68-1) ...
Setting up libdebhelper-perl (13.4.1) ...
Setting up libbrotli1:armhf (1.0.9-2+b1) ...
Setting up libnghttp2-14:armhf (1.43.0-1) ...
Setting up libmagic1:armhf (1:5.39-3) ...
Setting up gettext-base (0.21-4) ...
Setting up file (1:5.39-3) ...
Setting up autotools-dev (20180224.1+nmu1) ...
Setting up libuv1:armhf (1.40.0-2) ...
Setting up librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b2) ...
Setting up libncurses6:armhf (6.2+20201114-2) ...
Setting up libsigsegv2:armhf (2.13-1) ...
Setting up libpcre32-3:armhf (2:8.39-13) ...
Setting up autopoint (0.21-4) ...
Setting up libjsoncpp24:armhf (1.9.4-4) ...
Setting up sensible-utils (0.0.16) ...
Setting up librhash0:armhf (1.4.1-2) ...
Setting up libuchardet0:armhf (0.0.7-1) ...
Setting up libsub-override-perl (0.09-2) ...
Setting up libssh2-1:armhf (1.9.0-3) ...
Setting up cmake-data (3.18.4-2+rpi1) ...
Setting up libelf1:armhf (0.185-2) ...
Setting up libxml2:armhf (2.9.10+dfsg-6.7) ...
Setting up libprocps8:armhf (2:3.3.17-5) ...
Setting up libfile-stripnondeterminism-perl (1.12.0-1) ...
Setting up gettext (0.21-4) ...
Setting up libtool (2.4.6-15) ...
Setting up libarchive13:armhf (3.4.3-2) ...
Setting up libpcre3-dev:armhf (2:8.39-13) ...
Setting up m4 (1.4.18-5) ...
Setting up intltool-debian (0.35.0+20060710.5) ...
Setting up autoconf (2.69-14) ...
Setting up dh-strip-nondeterminism (1.12.0-1) ...
Setting up dwz (0.14-1) ...
Setting up groff-base (1.22.4-6) ...
Setting up procps (2:3.3.17-5) ...
Setting up libcurl4:armhf (7.74.0-1.3) ...
Setting up automake (1:1.16.3-2) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up po-debconf (1.0.21+nmu1) ...
Setting up man-db (2.9.4-2) ...
Not building database; man-db/auto-update is not 'true'.
Setting up dh-autoreconf (20) ...
Setting up cmake (3.18.4-2+rpi1) ...
Setting up debhelper (13.4.1) ...
Setting up sbuild-build-depends-checkit-tiff-dummy (0.invalid.0) ...
Processing triggers for libc-bin (2.31-13+rpi1) ...
W: No sandbox user '_apt' on the system, can not drop privileges

+------------------------------------------------------------------------------+
| Build environment                                                            |
+------------------------------------------------------------------------------+

Kernel: Linux 4.9.0-0.bpo.6-armmp armhf (armv7l)
Toolchain package versions: binutils_2.35.2-2+rpi1 dpkg-dev_1.20.9+rpi1 g++-10_10.2.1-6+rpi1 gcc-10_10.2.1-6+rpi1 libc6-dev_2.31-13+rpi1 libstdc++-10-dev_10.2.1-6+rpi1 libstdc++6_10.2.1-6+rpi1 linux-libc-dev_5.10.46-4+rpi1
Package versions: adduser_3.118 apt_2.2.4 autoconf_2.69-14 automake_1:1.16.3-2 autopoint_0.21-4 autotools-dev_20180224.1+nmu1 base-files_11.1+rpi1 base-passwd_3.5.51 bash_5.1-2 binutils_2.35.2-2+rpi1 binutils-arm-linux-gnueabihf_2.35.2-2+rpi1 binutils-common_2.35.2-2+rpi1 bsdextrautils_2.37.2-1 bsdutils_1:2.36.1-8 build-essential_12.9 bzip2_1.0.8-4 cmake_3.18.4-2+rpi1 cmake-data_3.18.4-2+rpi1 coreutils_8.32-4 cpp_4:10.2.1-1+rpi1 cpp-10_10.2.1-6+rpi1 dash_0.5.11+git20200708+dd9ef66-5 debconf_1.5.77 debhelper_13.4.1 debianutils_4.11.2 dh-autoreconf_20 dh-strip-nondeterminism_1.12.0-1 diffutils_1:3.7-5 dirmngr_2.2.27-2 dpkg_1.20.9+rpi1 dpkg-dev_1.20.9+rpi1 dwz_0.14-1 e2fsprogs_1.46.2-2 fakeroot_1.25.3-1.1 file_1:5.39-3 findutils_4.8.0-1 g++_4:10.2.1-1+rpi1 g++-10_10.2.1-6+rpi1 gcc_4:10.2.1-1+rpi1 gcc-10_10.2.1-6+rpi1 gcc-10-base_10.2.1-6+rpi1 gcc-7-base_7.5.0-6+rpi1+b2 gcc-8-base_8.4.0-7+rpi1 gcc-9-base_9.3.0-22+rpi1 gettext_0.21-4 gettext-base_0.21-4 gnupg_2.2.27-2 gnupg-l10n_2.2.27-2 gnupg-utils_2.2.27-2 gpg_2.2.27-2 gpg-agent_2.2.27-2 gpg-wks-client_2.2.27-2 gpg-wks-server_2.2.27-2 gpgconf_2.2.27-2 gpgsm_2.2.27-2 gpgv_2.2.27-2 grep_3.6-1 groff-base_1.22.4-6 gzip_1.10-4 hostname_3.23 init-system-helpers_1.60 intltool-debian_0.35.0+20060710.5 libacl1_2.2.53-10 libapt-pkg6.0_2.2.4 libarchive-zip-perl_1.68-1 libarchive13_3.4.3-2 libasan6_10.2.1-6+rpi1 libassuan0_2.5.3-7.1 libatomic1_10.2.1-6+rpi1 libattr1_1:2.4.48-6 libaudit-common_1:3.0-2 libaudit1_1:3.0-2 libbinutils_2.35.2-2+rpi1 libblkid1_2.36.1-8 libbrotli1_1.0.9-2+b1 libbz2-1.0_1.0.8-4 libc-bin_2.31-13+rpi1 libc-dev-bin_2.31-13+rpi1 libc6_2.31-13+rpi1 libc6-dev_2.31-13+rpi1 libcap-ng0_0.7.9-2.2+b1 libcc1-0_10.2.1-6+rpi1 libcom-err2_1.46.2-2 libcrypt-dev_1:4.4.18-4 libcrypt1_1:4.4.18-4 libctf-nobfd0_2.35.2-2+rpi1 libctf0_2.35.2-2+rpi1 libcurl4_7.74.0-1.3 libdb5.3_5.3.28+dfsg1-0.8 libdebconfclient0_0.260 libdebhelper-perl_13.4.1 libdpkg-perl_1.20.9+rpi1 libelf1_0.185-2 libexpat1_2.2.10-2 libext2fs2_1.46.2-2 libfakeroot_1.25.3-1.1 libffi7_3.3-6 libfile-stripnondeterminism-perl_1.12.0-1 libgcc-10-dev_10.2.1-6+rpi1 libgcc-s1_10.2.1-6+rpi1 libgcrypt20_1.8.7-6 libgdbm-compat4_1.19-2 libgdbm6_1.19-2 libgmp10_2:6.2.1+dfsg-1 libgnutls30_3.7.1-5 libgomp1_10.2.1-6+rpi1 libgpg-error0_1.38-2 libgssapi-krb5-2_1.18.3-6 libhogweed6_3.7.3-1 libicu67_67.1-7 libidn2-0_2.3.0-5 libisl23_0.23-1 libjsoncpp24_1.9.4-4 libk5crypto3_1.18.3-6 libkeyutils1_1.6.1-2 libkrb5-3_1.18.3-6 libkrb5support0_1.18.3-6 libksba8_1.5.0-3 libldap-2.4-2_2.4.57+dfsg-3 liblocale-gettext-perl_1.07-4+b1 liblz4-1_1.9.3-2 liblzma5_5.2.5-2 libmagic-mgc_1:5.39-3 libmagic1_1:5.39-3 libmount1_2.36.1-8 libmpc3_1.2.0-1 libmpfr6_4.1.0-3 libncurses6_6.2+20201114-2 libncursesw6_6.2+20201114-2 libnettle8_3.7.3-1 libnghttp2-14_1.43.0-1 libnpth0_1.6-3 libnsl-dev_1.3.0-2 libnsl2_1.3.0-2 libp11-kit0_0.23.22-1 libpam-modules_1.4.0-9 libpam-modules-bin_1.4.0-9 libpam-runtime_1.4.0-9 libpam0g_1.4.0-9 libpcre16-3_2:8.39-13 libpcre2-8-0_10.36-2 libpcre3_2:8.39-13 libpcre3-dev_2:8.39-13 libpcre32-3_2:8.39-13 libpcrecpp0v5_2:8.39-13 libperl5.32_5.32.1-4+deb11u1 libpipeline1_1.5.3-1 libprocps8_2:3.3.17-5 libpsl5_0.21.0-1.2 libreadline8_8.1-1 librhash0_1.4.1-2 librtmp1_2.4+20151223.gitfa8646d.1-2+b2 libsasl2-2_2.1.27+dfsg-2.1 libsasl2-modules-db_2.1.27+dfsg-2.1 libseccomp2_2.5.1-1+rpi1 libselinux1_3.1-3 libsemanage-common_3.1-1 libsemanage1_3.1-1+b1 libsepol1_3.1-1 libsigsegv2_2.13-1 libsmartcols1_2.36.1-8 libsqlite3-0_3.34.1-3 libss2_1.46.2-2 libssh2-1_1.9.0-3 libssl1.1_1.1.1k-1 libstdc++-10-dev_10.2.1-6+rpi1 libstdc++6_10.2.1-6+rpi1 libsub-override-perl_0.09-2 libsystemd0_247.3-6+rpi1 libtasn1-6_4.16.0-2 libtext-charwidth-perl_0.04-10+b1 libtext-iconv-perl_1.7-7+b1 libtinfo6_6.2+20201114-2 libtirpc-common_1.3.1-1 libtirpc-dev_1.3.1-1 libtirpc3_1.3.1-1 libtool_2.4.6-15 libubsan1_10.2.1-6+rpi1 libuchardet0_0.0.7-1 libudev1_247.3-6+rpi1 libunistring2_0.9.10-4 libuuid1_2.36.1-8 libuv1_1.40.0-2 libxml2_2.9.10+dfsg-6.7 libxxhash0_0.8.0-2+rpi1 libzstd1_1.4.8+dfsg-2.1+rpi1 linux-libc-dev_5.10.46-4+rpi1 login_1:4.8.1-1 logsave_1.46.2-2 lsb-base_11.1.0+rpi1 m4_1.4.18-5 make_4.3-4.1 man-db_2.9.4-2 mawk_1.3.4.20200120-2 mount_2.36.1-8 ncurses-base_6.2+20201114-2 ncurses-bin_6.2+20201114-2 netbase_6.3 passwd_1:4.8.1-1 patch_2.7.6-7 perl_5.32.1-4+deb11u1 perl-base_5.32.1-4+deb11u1 perl-modules-5.32_5.32.1-5 pinentry-curses_1.1.0-4 po-debconf_1.0.21+nmu1 procps_2:3.3.17-5 raspbian-archive-keyring_20120528.2 readline-common_8.1-2 sbuild-build-depends-checkit-tiff-dummy_0.invalid.0 sbuild-build-depends-core-dummy_0.invalid.0 sed_4.7-1 sensible-utils_0.0.16 sysvinit-utils_2.96-7 tar_1.34+dfsg-1 tzdata_2021a-1 util-linux_2.36.1-8 xz-utils_5.2.5-2 zlib1g_1:1.2.11.dfsg-2

+------------------------------------------------------------------------------+
| Build                                                                        |
+------------------------------------------------------------------------------+


Unpack source
-------------

gpgv: unknown type of key resource 'trustedkeys.kbx'
gpgv: keyblock resource '/tmp/dpkg-verify-sig.WdGFtRfd/trustedkeys.kbx': General error
gpgv: Signature made Thu Aug 26 09:06:53 2021 UTC
gpgv:                using RSA key F1F007320A035541F0A663CA578A0494D1C646D1
gpgv:                issuer "tille@debian.org"
gpgv: Can't check signature: No public key
dpkg-source: warning: failed to verify signature on ./checkit-tiff_0.4.2-1.dsc
dpkg-source: info: extracting checkit-tiff in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking checkit-tiff_0.4.2.orig.tar.gz
dpkg-source: info: unpacking checkit-tiff_0.4.2-1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying add_manual

Check disc space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
DEB_BUILD_OPTIONS=parallel=4
HOME=/sbuild-nonexistent
LC_ALL=POSIX
LOGNAME=buildd
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SCHROOT_ALIAS_NAME=bookworm-staging-armhf-sbuild
SCHROOT_CHROOT_NAME=bookworm-staging-armhf-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=109
SCHROOT_GROUP=buildd
SCHROOT_SESSION_ID=bookworm-staging-armhf-sbuild-e7eb7dc2-a1b8-4fc3-993c-7f3101a7e9eb
SCHROOT_UID=104
SCHROOT_USER=buildd
SHELL=/bin/sh
TERM=xterm
USER=buildd

dpkg-buildpackage
-----------------

dpkg-buildpackage: info: source package checkit-tiff
dpkg-buildpackage: info: source version 0.4.2-1
dpkg-buildpackage: info: source distribution unstable
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture armhf
 debian/rules clean
dh clean --sourcedirectory=src --buildsystem=cmake
   dh_auto_clean -O--sourcedirectory=src -O--buildsystem=cmake
   dh_autoreconf_clean -O--sourcedirectory=src -O--buildsystem=cmake
   dh_clean -O--sourcedirectory=src -O--buildsystem=cmake
 debian/rules binary-arch
dh binary-arch --sourcedirectory=src --buildsystem=cmake
   dh_update_autotools_config -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_autoreconf -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_auto_configure -a -O--sourcedirectory=src -O--buildsystem=cmake
	cd obj-arm-linux-gnueabihf && cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/var -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON -DCMAKE_INSTALL_RUNSTATEDIR=/run -DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY=ON "-GUnix Makefiles" -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_LIBDIR=lib/arm-linux-gnueabihf ../src
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_GNU11
-- Performing Test COMPILER_SUPPORTS_GNU11 - Success
-- Found PCRE: /usr/lib/arm-linux-gnueabihf/libpcre.so  
-- Looking for mmap
-- Looking for mmap - found
-- Looking for munmap
-- Looking for munmap - found
INFOmmap found
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY
    CMAKE_FIND_USE_PACKAGE_REGISTRY
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LOCALSTATEDIR
    CMAKE_INSTALL_RUNSTATEDIR
    CMAKE_INSTALL_SYSCONFDIR


-- Build files have been written to: /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf
   dh_auto_build -a -O--sourcedirectory=src -O--buildsystem=cmake
	cd obj-arm-linux-gnueabihf && make -j4 "INSTALL=install --strip-program=true" VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
/usr/bin/cmake -S/<<PKGBUILDDIR>>/src -B/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
make  -f CMakeFiles/checkit_tiff_risk.dir/build.make CMakeFiles/checkit_tiff_risk.dir/depend
make  -f CMakeFiles/checkit_check_config.dir/build.make CMakeFiles/checkit_check_config.dir/depend
make  -f CMakeFiles/checkit_tiff.dir/build.make CMakeFiles/checkit_tiff.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
cd /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>>/src /<<PKGBUILDDIR>>/src /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_tiff_risk.dir/DependInfo.cmake --color=
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
cd /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>>/src /<<PKGBUILDDIR>>/src /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_check_config.dir/DependInfo.cmake --color=
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
cd /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>>/src /<<PKGBUILDDIR>>/src /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_tiff.dir/DependInfo.cmake --color=
Dependee "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_tiff_risk.dir/DependInfo.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_tiff_risk.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_tiff_risk.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_tiff.dir/DependInfo.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_tiff.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_tiff.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_check_config.dir/DependInfo.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_check_config.dir/depend.internal".
Dependee "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles/checkit_check_config.dir/depend.internal".
Scanning dependencies of target checkit_tiff_risk
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
make  -f CMakeFiles/checkit_tiff_risk.dir/build.make CMakeFiles/checkit_tiff_risk.dir/build
Scanning dependencies of target checkit_tiff
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
make  -f CMakeFiles/checkit_tiff.dir/build.make CMakeFiles/checkit_tiff.dir/build
Scanning dependencies of target checkit_check_config
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
make  -f CMakeFiles/checkit_check_config.dir/build.make CMakeFiles/checkit_check_config.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
[  2%] Building C object CMakeFiles/checkit_tiff_risk.dir/helper/check_helper.c.o
[  2%] Building C object CMakeFiles/checkit_tiff_risk.dir/checkit_tiff_risk.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff_risk.dir/checkit_tiff_risk.c.o -c /<<PKGBUILDDIR>>/src/checkit_tiff_risk.c
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff_risk.dir/helper/check_helper.c.o -c /<<PKGBUILDDIR>>/src/helper/check_helper.c
[  4%] Building C object CMakeFiles/checkit_tiff.dir/checkit_tiff.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/checkit_tiff.c.o -c /<<PKGBUILDDIR>>/src/checkit_tiff.c
[  5%] Building C object CMakeFiles/checkit_check_config.dir/checkit_check_config.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/checkit_check_config.c.o -c /<<PKGBUILDDIR>>/src/checkit_check_config.c
[  6%] Building C object CMakeFiles/checkit_check_config.dir/helper/check_helper.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/helper/check_helper.c.o -c /<<PKGBUILDDIR>>/src/helper/check_helper.c
[  8%] Building C object CMakeFiles/checkit_check_config.dir/helper/check_print.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/helper/check_print.c.o -c /<<PKGBUILDDIR>>/src/helper/check_print.c
In file included from /usr/include/string.h:495,
                 from /<<PKGBUILDDIR>>/src/headers/check.h:15,
                 from /<<PKGBUILDDIR>>/src/headers/config_parser.h:11,
                 from /<<PKGBUILDDIR>>/src/checkit_tiff.c:10:
In function 'strncpy',
    inlined from 'main' at /<<PKGBUILDDIR>>/src/checkit_tiff.c:175:7:
/usr/include/arm-linux-gnueabihf/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/checkit_tiff.c: In function 'main':
/<<PKGBUILDDIR>>/src/checkit_tiff.c:173:20: note: length computed here
  173 |       size_t len = strlen( tiff_file_or_dir);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
[  9%] Building C object CMakeFiles/checkit_tiff_risk.dir/helper/check_print.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff_risk.dir/helper/check_print.c.o -c /<<PKGBUILDDIR>>/src/helper/check_print.c
[ 10%] Building C object CMakeFiles/checkit_tiff.dir/helper/check_helper.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/helper/check_helper.c.o -c /<<PKGBUILDDIR>>/src/helper/check_helper.c
[ 12%] Building C object CMakeFiles/checkit_tiff_risk.dir/helper/check_tiffparse.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff_risk.dir/helper/check_tiffparse.c.o -c /<<PKGBUILDDIR>>/src/helper/check_tiffparse.c
[ 13%] Building C object CMakeFiles/checkit_check_config.dir/helper/check_renderer.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/helper/check_renderer.c.o -c /<<PKGBUILDDIR>>/src/helper/check_renderer.c
[ 14%] Building C object CMakeFiles/checkit_check_config.dir/helper/check_tiffparse.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/helper/check_tiffparse.c.o -c /<<PKGBUILDDIR>>/src/helper/check_tiffparse.c
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c: In function 'read_offsetdata':
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       unsigned int
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       unsigned int
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c: In function 'read_offsetdata':
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer *//<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u

      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 16%] Building C object CMakeFiles/checkit_check_config.dir/helper/renderer/check_renderer_ansi.c.o
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/helper/renderer/check_renderer_ansi.c.o -c /<<PKGBUILDDIR>>/src/helper/renderer/check_renderer_ansi.c
~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                         /build         
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<BUILDDIR>>/c/checkit-tiff-5c5SbB/checkit-tiff-0.4.2/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
heckit-tiff-0.4.2/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 17%] Building C object CMakeFiles/checkit_tiff.dir/helper/check_print.c.o
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, addre/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/helper/check_print.c.o -c /<<PKGBUILDDIR>>/src/helper/check_print.c
ss++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  499 |       break;
      |       ~~~~~~                     
  500 |     case 17: /* BigTIFF 64-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  501 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  502 |       OFFSET_MALLOC(ctif, offset_p->datas64p, int64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  499 |       break;
      |       ~~~~~~                     
  500 |     case 17: /* BigTIFF 64-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  501 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  502 |       OFFSET_MALLOC(ctif, offset_p->datas64p, int64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       unsigned int
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       unsigned int
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 18%] Building C object CMakeFiles/checkit_tiff.dir/helper/check_renderer.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/helper/check_renderer.c.o -c /<<PKGBUILDDIR>>/src/helper/check_renderer.c
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  499 |       break;
      |       ~~~~~~                     
  500 |     case 17: /* BigTIFF 64-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  501 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  502 |       OFFSET_MALLOC(ctif, offset_p->datas64p, int64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  499 |       break;
      |       ~~~~~~                     
  500 |     case 17: /* BigTIFF 64-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  501 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  502 |       OFFSET_MALLOC(ctif, offset_p->datas64p, int64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
[ 20%] Building C object CMakeFiles/checkit_tiff.dir/helper/check_tiffparse.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/helper/check_tiffparse.c.o -c /<<PKGBUILDDIR>>/src/helper/check_tiffparse.c
[ 21%] Building C object CMakeFiles/checkit_check_config.dir/helper/renderer/check_renderer_default.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/helper/renderer/check_renderer_default.c.o -c /<<PKGBUILDDIR>>/src/helper/renderer/check_renderer_default.c
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c: In function 'read_offsetdata':
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       unsigned int
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       unsigned int
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                   |
      |                                                                                                                                                   unsigned int
  395 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  396 |     ret_p->returncode = tiff_seek_error_offset;\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  397 |     return * ret_p;\
      |     ~~~~~~~~~~~~~~~~             
  398 |   }\
      |   ~~                             
  399 |   offsetdata = NULL; offsetdata = malloc ( sizeof(offset_type) * count);\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  400 |   if (NULL == offsetdata) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  401 |     fprintf( stderr, "could not allocate memory for offset_t\n");\
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  402 |     exit (EXIT_FAILURE);\
      |     ~~~~~~~~~~~~~~~~~~~~~        
  403 |   }\
      |   ~~                             
  404 |   if ( ct_read( ctif_p, offsetdata, sizeof(offset_type) * count) != (sizeof(offset_type) *count) ) {\
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  405 |        /*  fprintf(stderr, "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  406 |        /*  exit( EXIT_FAILURE ); */\
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  407 |     char msg[VALUESTRLEN]; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~     
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  499 |       break;
      |       ~~~~~~                     
  500 |     case 17: /* BigTIFF 64-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  501 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  502 |       OFFSET_MALLOC(ctif, offset_p->datas64p, int64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:33: note: in definition of macro 'OFFSET_MALLOC'
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:394:93: note: format string is defined here
  394 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes, but file has size=%u\n", sizeof(offset_type) * count, ctif_p->streamlen); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'unsigned int' [-Wformat=]
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                             |
      |                                                                                                                             unsigned int
  409 |     *ret_p  = set_value_found_ret( ret_p, msg); \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  410 |     ret_p->returncode = tiff_read_error_offset; \
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  411 |     return *ret_p; \
      |     ~~~~~~~~~~~~~~~~             
  412 |   }\
      |   ~~                             
  413 | }
      | ~                                
  414 | 
      |                                  
  415 | void offset_swabshort(ctiff_t * ctif, uint16 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  416 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  417 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  418 |       TIFFSwabShort( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~  
  419 |     }
      |     ~                            
  420 | }
      | ~                                
  421 | 
      |                                  
  422 | void offset_swablong(ctiff_t * ctif, uint32 * address, uint16 count) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  423 |   if (is_byteswapped(ctif))
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~      
  424 |     for (int i=0; i<count; i++, address++) {
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  425 |       TIFFSwabLong( address );
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  426 |     }
      |     ~                            
  427 | }
      | ~                                
  428 | /*  get count-data datastream from offset-address */
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  429 | ret_t read_offsetdata(ctiff_t * ctif, const uint32 address, const uint32 count, const uint16 datatype, offset_t * offset_p, ret_t * ret_p) {
      | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  430 |   assert(NULL !=  offset_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~     
  431 |   assert(NULL != ret_p);
      |   ~~~~~~~~~~~~~~~~~~~~~~         
  432 |   offset_p->count = count;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~       
  433 |   offset_p->datatype = datatype;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
  434 |   ret_p->returncode = is_valid;
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  435 | 
      |                                  
  436 |   /* ct_read and seek to IFD address */
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  437 |   if (ct_seek(ctif, address, SEEK_SET) != address) {
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  438 |     offset_p->count = -1;
      |     ~~~~~~~~~~~~~~~~~~~~~        
  439 |     ret_p->returncode = tiff_seek_error_offset;
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  440 |     return * ret_p;
      |     ~~~~~~~~~~~~~~~              
  441 |   }
      |   ~                              
  442 | #ifdef DEBUG
      | ~~~~~~~~~~~~                     
  443 |   printf("read_offsetdata(tif, address=%u, count=%u, datatype=%u)\n", address, count, datatype);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  444 | #endif
      | ~~~~~~                           
  445 |   switch (datatype) {
      |   ~~~~~~~~~~~~~~~~~~~            
  446 |     case 1: /* 8-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  447 |     case 7: /* !8-bit untyped data */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  448 |       /*
      |       ~~                         
  449 |       offset_p->data8p = NULL;
      |       ~~~~~~~~~~~~~~~~~~~~~~~~   
  450 |       offset_p->data8p = malloc ( sizeof(uint8) * count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  451 |       if (ct_read(fd, offset_p->data8p,  sizeof(uint8) * count) != sizeof(uint8) *count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  452 |         perror ("TIFF Offset ct_read error");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  453 |       */
      |       ~~                         
  454 |       OFFSET_MALLOC(ctif, offset_p->data8p, uint8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  455 |       break;
      |       ~~~~~~                     
  456 |     case 2: /* 8-bit bytes w/ last byte null */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  457 |       assert( sizeof(char) == sizeof(uint8));
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  458 |       OFFSET_MALLOC(ctif, offset_p->datacharp, char, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  459 |       break;
      |       ~~~~~~                     
  460 |     case 6: /* !8-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  461 |       OFFSET_MALLOC(ctif, offset_p->datas8p, int8, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  462 |       break;
      |       ~~~~~~                     
  463 |     case 3: /* 16-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  464 |       OFFSET_MALLOC(ctif, offset_p->data16p, uint16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  465 |       offset_swabshort(ctif, offset_p->data16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  466 |       break;
      |       ~~~~~~                     
  467 |     case 8: /* !16-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  468 |       OFFSET_MALLOC(ctif, offset_p->datas16p, int16, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  469 |       offset_swabshort(ctif, (uint16 *) offset_p->datas16p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  470 |       break;
      |       ~~~~~~                     
  471 |     case 4: /* 32-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  472 |     case 13: /* %32-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  473 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  474 |       offset_swablong(ctif, offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  475 |       break;
      |       ~~~~~~                     
  476 |     case 9: /* !32-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  477 |       OFFSET_MALLOC(ctif, offset_p->datas32p, uint32, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  478 |       offset_swablong(ctif, (uint32 *) offset_p->data32p, count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  479 |       break;
      |       ~~~~~~                     
  480 |     case 5: /* 64-bit unsigned fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  481 |       OFFSET_MALLOC(ctif, offset_p->data32p, uint32, 2*count) /* because numerator + denominator */
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  482 |       offset_swablong(ctif, offset_p->data32p, 2*count);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  483 |       break;
      |       ~~~~~~                     
  484 |     case 10: /* !64-bit signed fraction */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  485 |       fprintf(stderr, "offsetdata datatype=%i not supported yet", datatype);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  486 |       exit(EXIT_FAILURE);
      |       ~~~~~~~~~~~~~~~~~~~        
  487 |     case 11: /* !32-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  488 |       assert( sizeof(float) == 4);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  489 |       OFFSET_MALLOC(ctif, offset_p->datafloatp, float, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  490 |       break;
      |       ~~~~~~                     
  491 |     case 12: /* !64-bit IEEE floating point */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  492 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  493 |       OFFSET_MALLOC(ctif, offset_p->datadoublep, double, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  494 |       break;
      |       ~~~~~~                     
  495 |     case 16: /* BigTIFF 64-bit unsigned integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  496 |     case 18: /* BigTIFF 64-bit unsigned integer (offset) */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  497 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  498 |       OFFSET_MALLOC(ctif, offset_p->data64p, uint64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  499 |       break;
      |       ~~~~~~                     
  500 |     case 17: /* BigTIFF 64-bit signed integer */
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  501 |       assert( sizeof(double) == 8);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  502 |       OFFSET_MALLOC(ctif, offset_p->datas64p, int64, count)
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:33: note: in definition of macro 'OFFSET_MALLOC'
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/helper/check_tiffparse.c:408:93: note: format string is defined here
  408 |     snprintf(msg, VALUESTRLEN,  "TIFF Offset ct_read error, try to read from offset count=%lu bytes\n", sizeof(offset_type) * count); \
      |                                                                                           ~~^
      |                                                                                             |
      |                                                                                             long unsigned int
      |                                                                                           %u
[ 22%] Building C object CMakeFiles/checkit_tiff_risk.dir/messages/msg_parser.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff_risk.dir/messages/msg_parser.c.o -c /<<PKGBUILDDIR>>/src/messages/msg_parser.c
[ 24%] Building C object CMakeFiles/checkit_check_config.dir/helper/renderer/check_renderer_xml.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/helper/renderer/check_renderer_xml.c.o -c /<<PKGBUILDDIR>>/src/helper/renderer/check_renderer_xml.c
[ 25%] Building C object CMakeFiles/checkit_tiff.dir/helper/renderer/check_renderer_ansi.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/helper/renderer/check_renderer_ansi.c.o -c /<<PKGBUILDDIR>>/src/helper/renderer/check_renderer_ansi.c
[ 27%] Building C object CMakeFiles/checkit_tiff_risk.dir/messages/msg_tiffparse.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff_risk.dir/messages/msg_tiffparse.c.o -c /<<PKGBUILDDIR>>/src/messages/msg_tiffparse.c
[ 28%] Building C object CMakeFiles/checkit_check_config.dir/ifdrules/check_all_IFDs_are_word_aligned.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/ifdrules/check_all_IFDs_are_word_aligned.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_all_IFDs_are_word_aligned.c
[ 29%] Building C object CMakeFiles/checkit_check_config.dir/ifdrules/check_all_offsets_are_used_once_only.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/ifdrules/check_all_offsets_are_used_once_only.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_all_offsets_are_used_once_only.c
[ 31%] Building C object CMakeFiles/checkit_tiff_risk.dir/risk_analyzer/lst_offset_mappings.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff_risk.dir/risk_analyzer/lst_offset_mappings.c.o -c /<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c
[ 32%] Building C object CMakeFiles/checkit_check_config.dir/ifdrules/check_all_offsets_are_word_aligned.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/ifdrules/check_all_offsets_are_word_aligned.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_all_offsets_are_word_aligned.c
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c: In function 'scan_mem_map':
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:142:128: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  142 |                           fprintf(stderr, "error reading offset data, stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint32)), (uint64) 0xffffffff);
      |                                                                                                                              ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                |                                                                                                   |
      |                                                                                                                                unsigned int                                                                                        long unsigned int
      |                                                                                                                              %lu
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:147:101: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  147 |                           fprintf(stderr, "stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint32)), (uint64) 0xffffffff);
      |                                                                                                   ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                     |                                                                                                   |
      |                                                                                                     unsigned int                                                                                        long unsigned int
      |                                                                                                   %lu
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:173:129: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  173 |                            fprintf(stderr, "error reading offset data, stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint32)), (uint64) 0xffffffff);
      |                                                                                                                               ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                 |                                                                                                   |
      |                                                                                                                                 unsigned int                                                                                        long unsigned int
      |                                                                                                                               %lu
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:178:102: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  178 |                            fprintf(stderr, "stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint16)), (uint64) 0xffffffff);
      |                                                                                                    ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                      |                                                                                                   |
      |                                                                                                      unsigned int                                                                                        long unsigned int
      |                                                                                                    %lu
[ 33%] Building C object CMakeFiles/checkit_tiff.dir/helper/renderer/check_renderer_default.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/helper/renderer/check_renderer_default.c.o -c /<<PKGBUILDDIR>>/src/helper/renderer/check_renderer_default.c
[ 35%] Building C object CMakeFiles/checkit_check_config.dir/ifdrules/check_all_offsets_greater_zero.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/ifdrules/check_all_offsets_greater_zero.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_all_offsets_greater_zero.c
[ 36%] Building C object CMakeFiles/checkit_tiff.dir/helper/renderer/check_renderer_xml.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/helper/renderer/check_renderer_xml.c.o -c /<<PKGBUILDDIR>>/src/helper/renderer/check_renderer_xml.c
[ 37%] Building C object CMakeFiles/checkit_check_config.dir/ifdrules/check_has_only_one_ifd.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/ifdrules/check_has_only_one_ifd.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_has_only_one_ifd.c
[ 39%] Building C object CMakeFiles/checkit_check_config.dir/ifdrules/check_tagorder.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/ifdrules/check_tagorder.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_tagorder.c
[ 40%] Linking C executable checkit_tiff_risk
/usr/bin/cmake -E cmake_link_script CMakeFiles/checkit_tiff_risk.dir/link.txt --verbose=1
/usr/bin/cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/checkit_tiff_risk.dir/checkit_tiff_risk.c.o CMakeFiles/checkit_tiff_risk.dir/helper/check_helper.c.o CMakeFiles/checkit_tiff_risk.dir/helper/check_print.c.o CMakeFiles/checkit_tiff_risk.dir/helper/check_tiffparse.c.o CMakeFiles/checkit_tiff_risk.dir/messages/msg_parser.c.o CMakeFiles/checkit_tiff_risk.dir/messages/msg_tiffparse.c.o CMakeFiles/checkit_tiff_risk.dir/risk_analyzer/lst_offset_mappings.c.o -o checkit_tiff_risk 
[ 41%] Building C object CMakeFiles/checkit_tiff.dir/ifdrules/check_all_IFDs_are_word_aligned.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/ifdrules/check_all_IFDs_are_word_aligned.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_all_IFDs_are_word_aligned.c
[ 43%] Building C object CMakeFiles/checkit_tiff.dir/ifdrules/check_all_offsets_are_used_once_only.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/ifdrules/check_all_offsets_are_used_once_only.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_all_offsets_are_used_once_only.c
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
[ 44%] Building C object CMakeFiles/checkit_check_config.dir/messages/msg_parser.c.o
[ 44%] Built target checkit_tiff_risk
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/messages/msg_parser.c.o -c /<<PKGBUILDDIR>>/src/messages/msg_parser.c
[ 45%] Building C object CMakeFiles/checkit_check_config.dir/messages/msg_tiffparse.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/messages/msg_tiffparse.c.o -c /<<PKGBUILDDIR>>/src/messages/msg_tiffparse.c
[ 47%] Building C object CMakeFiles/checkit_check_config.dir/parser/config_parser.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/parser/config_parser.c.o -c /<<PKGBUILDDIR>>/src/parser/config_parser.c
[ 48%] Building C object CMakeFiles/checkit_tiff.dir/ifdrules/check_all_offsets_are_word_aligned.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/ifdrules/check_all_offsets_are_word_aligned.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_all_offsets_are_word_aligned.c
[ 50%] Building C object CMakeFiles/checkit_tiff.dir/ifdrules/check_all_offsets_greater_zero.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/ifdrules/check_all_offsets_greater_zero.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_all_offsets_greater_zero.c
[ 51%] Building C object CMakeFiles/checkit_check_config.dir/risk_analyzer/lst_offset_mappings.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/risk_analyzer/lst_offset_mappings.c.o -c /<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c
[ 52%] Building C object CMakeFiles/checkit_tiff.dir/ifdrules/check_has_only_one_ifd.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/ifdrules/check_has_only_one_ifd.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_has_only_one_ifd.c
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c: In function 'scan_mem_map':
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:142:128: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  142 |                           fprintf(stderr, "error reading offset data, stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint32)), (uint64) 0xffffffff);
      |                                                                                                                              ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                |                                                                                                   |
      |                                                                                                                                unsigned int                                                                                        long unsigned int
      |                                                                                                                              %lu
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:147:101: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  147 |                           fprintf(stderr, "stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint32)), (uint64) 0xffffffff);
      |                                                                                                   ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                     |                                                                                                   |
      |                                                                                                     unsigned int                                                                                        long unsigned int
      |                                                                                                   %lu
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:173:129: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  173 |                            fprintf(stderr, "error reading offset data, stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint32)), (uint64) 0xffffffff);
      |                                                                                                                               ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                 |                                                                                                   |
      |                                                                                                                                 unsigned int                                                                                        long unsigned int
      |                                                                                                                               %lu
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:178:102: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  178 |                            fprintf(stderr, "stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint16)), (uint64) 0xffffffff);
      |                                                                                                    ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                      |                                                                                                   |
      |                                                                                                      unsigned int                                                                                        long unsigned int
      |                                                                                                    %lu
[ 54%] Building C object CMakeFiles/checkit_tiff.dir/ifdrules/check_tagorder.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/ifdrules/check_tagorder.c.o -c /<<PKGBUILDDIR>>/src/ifdrules/check_tagorder.c
[ 55%] Building C object CMakeFiles/checkit_tiff.dir/messages/msg_parser.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/messages/msg_parser.c.o -c /<<PKGBUILDDIR>>/src/messages/msg_parser.c
[ 56%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_datetime.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_datetime.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_datetime.c
[ 58%] Building C object CMakeFiles/checkit_tiff.dir/messages/msg_tiffparse.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/messages/msg_tiffparse.c.o -c /<<PKGBUILDDIR>>/src/messages/msg_tiffparse.c
[ 59%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_icc.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_icc.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_icc.c
[ 60%] Building C object CMakeFiles/checkit_tiff.dir/parser/config_parser.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/parser/config_parser.c.o -c /<<PKGBUILDDIR>>/src/parser/config_parser.c
[ 62%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_notag.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_notag.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_notag.c
[ 63%] Building C object CMakeFiles/checkit_tiff.dir/risk_analyzer/lst_offset_mappings.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/risk_analyzer/lst_offset_mappings.c.o -c /<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c
[ 64%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag.c
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c: In function 'scan_mem_map':
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:142:128: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  142 |                           fprintf(stderr, "error reading offset data, stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint32)), (uint64) 0xffffffff);
      |                                                                                                                              ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                |                                                                                                   |
      |                                                                                                                                unsigned int                                                                                        long unsigned int
      |                                                                                                                              %lu
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:147:101: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  147 |                           fprintf(stderr, "stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint32)), (uint64) 0xffffffff);
      |                                                                                                   ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                     |                                                                                                   |
      |                                                                                                     unsigned int                                                                                        long unsigned int
      |                                                                                                   %lu
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:173:129: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  173 |                            fprintf(stderr, "error reading offset data, stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint32)), (uint64) 0xffffffff);
      |                                                                                                                               ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                 |                                                                                                   |
      |                                                                                                                                 unsigned int                                                                                        long unsigned int
      |                                                                                                                               %lu
/<<PKGBUILDDIR>>/src/risk_analyzer/lst_offset_mappings.c:178:102: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long unsigned int' [-Wformat=]
  178 |                            fprintf(stderr, "stripoffset_entry.count has size %u, resulting address %zu, but only offset to %lu is possible\n", stripoffset_entry.count, ((uint64) stripoffset_entry.count*sizeof(uint16)), (uint64) 0xffffffff);
      |                                                                                                    ~~^                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                      |                                                                                                   |
      |                                                                                                      unsigned int                                                                                        long unsigned int
      |                                                                                                    %lu
[ 66%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_datetime.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_datetime.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_datetime.c
[ 67%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_some_of_these_values.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_some_of_these_values.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_some_of_these_values.c
[ 68%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_valid_asciivalue.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_valid_asciivalue.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_valid_asciivalue.c
[ 70%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_icc.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_icc.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_icc.c
[ 71%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_valid_type.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_valid_type.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_valid_type.c
[ 72%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value.c
[ 74%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_notag.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_notag.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_notag.c
[ 75%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag.c
[ 77%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value_in_range.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value_in_range.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_in_range.c
[ 78%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value_matching_regex.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value_matching_regex.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_matching_regex.c
/<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_matching_regex.c: In function 'check_tag_has_value_matching_regex':
/<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_matching_regex.c:34:80: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint32' {aka 'unsigned int'} [-Wformat=]
   34 |                            snprintf(array, sizeof(array), "'%c' (at position %lu: '%s')", val[count-1], count-1, val);
      |                                                                              ~~^                        ~~~~~~~
      |                                                                                |                             |
      |                                                                                long unsigned int             uint32 {aka unsigned int}
      |                                                                              %u
[ 79%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_some_of_these_values.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_some_of_these_values.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_some_of_these_values.c
[ 81%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_valid_asciivalue.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_valid_asciivalue.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_valid_asciivalue.c
[ 82%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value_quiet.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value_quiet.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_quiet.c
[ 83%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_valuelist.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_valuelist.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_valuelist.c
[ 85%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_valid_type.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_valid_type.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_valid_type.c
[ 86%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value.c
[ 87%] Building C object CMakeFiles/checkit_check_config.dir/tagrules/check_tag_quiet.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_quiet.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_quiet.c
[ 89%] Building C object CMakeFiles/checkit_check_config.dir/validate_icc/check_icc_header.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_check_config.dir/validate_icc/check_icc_header.c.o -c /<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c
[ 90%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value_in_range.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value_in_range.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_in_range.c
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c: In function 'parse_icc_common_header':
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:69:69: warning: '%i' directive output may be truncated writing between 1 and 2 bytes into a region of size between 0 and 2 [-Wformat-truncation=]
   69 |   char profileversion[6]="    "; snprintf(profileversion, 6, "%i.%i.%i", (iccdata[8]) & 0x000f, ((iccdata[9] & 0x00f0) >>4), (iccdata[9] & 0x000f));
      |                                                                     ^~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:69:62: note: directive argument in the range [0, 15]
   69 |   char profileversion[6]="    "; snprintf(profileversion, 6, "%i.%i.%i", (iccdata[8]) & 0x000f, ((iccdata[9] & 0x00f0) >>4), (iccdata[9] & 0x000f));
      |                                                              ^~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from /<<PKGBUILDDIR>>/src/validate_icc/validate_icc.h:3,
                 from /<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:2:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 6 and 9 bytes into a destination of size 6
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:123:61: warning: '%.2d' directive output may be truncated writing between 2 and 5 bytes into a region of size between 2 and 9 [-Wformat-truncation=]
  123 |   char datetime[20]; snprintf(datetime, 20, "%.4d:%.2d:%.2d %.2d:%.2d:%.2d",
      |                                                             ^~~~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:123:45: note: directive argument in the range [0, 65535]
  123 |   char datetime[20]; snprintf(datetime, 20, "%.4d:%.2d:%.2d %.2d:%.2d:%.2d",
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:123:45: note: directive argument in the range [0, 65535]
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:123:45: note: directive argument in the range [0, 65535]
In file included from /usr/include/stdio.h:867,
                 from /<<PKGBUILDDIR>>/src/validate_icc/validate_icc.h:3,
                 from /<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:2:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 20 and 36 bytes into a destination of size 20
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 91%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value_matching_regex.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value_matching_regex.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_matching_regex.c
[ 93%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value_quiet.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value_quiet.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_quiet.c
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c: In function 'parse_icc':
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:247:71: warning: '%1i' directive output may be truncated writing between 1 and 2 bytes into a region of size between 0 and 2 [-Wformat-truncation=]
  247 |   char profileversion[6]="    "; snprintf(profileversion, 6, "%1i.%1i.%1i", a, b, c);
      |                                                                       ^~~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:247:62: note: directive argument in the range [0, 15]
  247 |   char profileversion[6]="    "; snprintf(profileversion, 6, "%1i.%1i.%1i", a, b, c);
      |                                                              ^~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from /<<PKGBUILDDIR>>/src/validate_icc/validate_icc.h:3,
                 from /<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:2:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 6 and 9 bytes into a destination of size 6
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_matching_regex.c: In function 'check_tag_has_value_matching_regex':
/<<PKGBUILDDIR>>/src/tagrules/check_tag_has_value_matching_regex.c:34:80: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint32' {aka 'unsigned int'} [-Wformat=]
   34 |                            snprintf(array, sizeof(array), "'%c' (at position %lu: '%s')", val[count-1], count-1, val);
      |                                                                              ~~^                        ~~~~~~~
      |                                                                                |                             |
      |                                                                                long unsigned int             uint32 {aka unsigned int}
      |                                                                              %u
[ 94%] Linking C executable checkit_check_config
/usr/bin/cmake -E cmake_link_script CMakeFiles/checkit_check_config.dir/link.txt --verbose=1
/usr/bin/cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/checkit_check_config.dir/checkit_check_config.c.o CMakeFiles/checkit_check_config.dir/helper/check_helper.c.o CMakeFiles/checkit_check_config.dir/helper/check_print.c.o CMakeFiles/checkit_check_config.dir/helper/check_renderer.c.o CMakeFiles/checkit_check_config.dir/helper/check_tiffparse.c.o CMakeFiles/checkit_check_config.dir/helper/renderer/check_renderer_ansi.c.o CMakeFiles/checkit_check_config.dir/helper/renderer/check_renderer_default.c.o CMakeFiles/checkit_check_config.dir/helper/renderer/check_renderer_xml.c.o CMakeFiles/checkit_check_config.dir/ifdrules/check_all_IFDs_are_word_aligned.c.o CMakeFiles/checkit_check_config.dir/ifdrules/check_all_offsets_are_used_once_only.c.o CMakeFiles/checkit_check_config.dir/ifdrules/check_all_offsets_are_word_aligned.c.o CMakeFiles/checkit_check_config.dir/ifdrules/check_all_offsets_greater_zero.c.o CMakeFiles/checkit_check_config.dir/ifdrules/check_has_only_one_ifd.c.o CMakeFiles/checkit_check_config.dir/ifdrules/check_tagorder.c.o CMakeFiles/checkit_check_config.dir/messages/msg_parser.c.o CMakeFiles/checkit_check_config.dir/messages/msg_tiffparse.c.o CMakeFiles/checkit_check_config.dir/parser/config_parser.c.o CMakeFiles/checkit_check_config.dir/risk_analyzer/lst_offset_mappings.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_datetime.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_icc.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_notag.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_some_of_these_values.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_valid_asciivalue.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_valid_type.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value_in_range.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value_matching_regex.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_value_quiet.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_has_valuelist.c.o CMakeFiles/checkit_check_config.dir/tagrules/check_tag_quiet.c.o CMakeFiles/checkit_check_config.dir/validate_icc/check_icc_header.c.o -o checkit_check_config  -lpcre 
[ 95%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_valuelist.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_valuelist.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_has_valuelist.c
[ 97%] Building C object CMakeFiles/checkit_tiff.dir/tagrules/check_tag_quiet.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_quiet.c.o -c /<<PKGBUILDDIR>>/src/tagrules/check_tag_quiet.c
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
[ 97%] Built target checkit_check_config
[ 98%] Building C object CMakeFiles/checkit_tiff.dir/validate_icc/check_icc_header.c.o
/usr/bin/cc -DREPO_REVISION=\"\" -DVERSION=\"_\" -I/<<PKGBUILDDIR>>/src/headers -I/<<PKGBUILDDIR>>/src/validate_icc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -o CMakeFiles/checkit_tiff.dir/validate_icc/check_icc_header.c.o -c /<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c: In function 'parse_icc_common_header':
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:69:69: warning: '%i' directive output may be truncated writing between 1 and 2 bytes into a region of size between 0 and 2 [-Wformat-truncation=]
   69 |   char profileversion[6]="    "; snprintf(profileversion, 6, "%i.%i.%i", (iccdata[8]) & 0x000f, ((iccdata[9] & 0x00f0) >>4), (iccdata[9] & 0x000f));
      |                                                                     ^~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:69:62: note: directive argument in the range [0, 15]
   69 |   char profileversion[6]="    "; snprintf(profileversion, 6, "%i.%i.%i", (iccdata[8]) & 0x000f, ((iccdata[9] & 0x00f0) >>4), (iccdata[9] & 0x000f));
      |                                                              ^~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from /<<PKGBUILDDIR>>/src/validate_icc/validate_icc.h:3,
                 from /<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:2:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 6 and 9 bytes into a destination of size 6
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:123:61: warning: '%.2d' directive output may be truncated writing between 2 and 5 bytes into a region of size between 2 and 9 [-Wformat-truncation=]
  123 |   char datetime[20]; snprintf(datetime, 20, "%.4d:%.2d:%.2d %.2d:%.2d:%.2d",
      |                                                             ^~~~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:123:45: note: directive argument in the range [0, 65535]
  123 |   char datetime[20]; snprintf(datetime, 20, "%.4d:%.2d:%.2d %.2d:%.2d:%.2d",
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:123:45: note: directive argument in the range [0, 65535]
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:123:45: note: directive argument in the range [0, 65535]
In file included from /usr/include/stdio.h:867,
                 from /<<PKGBUILDDIR>>/src/validate_icc/validate_icc.h:3,
                 from /<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:2:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 20 and 36 bytes into a destination of size 20
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c: In function 'parse_icc':
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:247:71: warning: '%1i' directive output may be truncated writing between 1 and 2 bytes into a region of size between 0 and 2 [-Wformat-truncation=]
  247 |   char profileversion[6]="    "; snprintf(profileversion, 6, "%1i.%1i.%1i", a, b, c);
      |                                                                       ^~~
/<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:247:62: note: directive argument in the range [0, 15]
  247 |   char profileversion[6]="    "; snprintf(profileversion, 6, "%1i.%1i.%1i", a, b, c);
      |                                                              ^~~~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
                 from /<<PKGBUILDDIR>>/src/validate_icc/validate_icc.h:3,
                 from /<<PKGBUILDDIR>>/src/validate_icc/check_icc_header.c:2:
/usr/include/arm-linux-gnueabihf/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 6 and 9 bytes into a destination of size 6
   67 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   68 |        __bos (__s), __fmt, __va_arg_pack ());
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking C executable checkit_tiff
/usr/bin/cmake -E cmake_link_script CMakeFiles/checkit_tiff.dir/link.txt --verbose=1
/usr/bin/cc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu11 -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/checkit_tiff.dir/checkit_tiff.c.o CMakeFiles/checkit_tiff.dir/helper/check_helper.c.o CMakeFiles/checkit_tiff.dir/helper/check_print.c.o CMakeFiles/checkit_tiff.dir/helper/check_renderer.c.o CMakeFiles/checkit_tiff.dir/helper/check_tiffparse.c.o CMakeFiles/checkit_tiff.dir/helper/renderer/check_renderer_ansi.c.o CMakeFiles/checkit_tiff.dir/helper/renderer/check_renderer_default.c.o CMakeFiles/checkit_tiff.dir/helper/renderer/check_renderer_xml.c.o CMakeFiles/checkit_tiff.dir/ifdrules/check_all_IFDs_are_word_aligned.c.o CMakeFiles/checkit_tiff.dir/ifdrules/check_all_offsets_are_used_once_only.c.o CMakeFiles/checkit_tiff.dir/ifdrules/check_all_offsets_are_word_aligned.c.o CMakeFiles/checkit_tiff.dir/ifdrules/check_all_offsets_greater_zero.c.o CMakeFiles/checkit_tiff.dir/ifdrules/check_has_only_one_ifd.c.o CMakeFiles/checkit_tiff.dir/ifdrules/check_tagorder.c.o CMakeFiles/checkit_tiff.dir/messages/msg_parser.c.o CMakeFiles/checkit_tiff.dir/messages/msg_tiffparse.c.o CMakeFiles/checkit_tiff.dir/parser/config_parser.c.o CMakeFiles/checkit_tiff.dir/risk_analyzer/lst_offset_mappings.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_datetime.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_icc.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_notag.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_some_of_these_values.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_valid_asciivalue.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_valid_type.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value_in_range.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value_matching_regex.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_value_quiet.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_has_valuelist.c.o CMakeFiles/checkit_tiff.dir/tagrules/check_tag_quiet.c.o CMakeFiles/checkit_tiff.dir/validate_icc/check_icc_header.c.o -o checkit_tiff  -lpcre 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
[100%] Built target checkit_tiff
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/CMakeFiles 0
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
   dh_auto_test -a -O--sourcedirectory=src -O--buildsystem=cmake
   create-stamp debian/debhelper-build-stamp
   dh_testroot -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_prep -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_auto_install -a -O--sourcedirectory=src -O--buildsystem=cmake
	cd obj-arm-linux-gnueabihf && make -j4 install DESTDIR=/<<PKGBUILDDIR>>/debian/checkit-tiff AM_UPDATE_INFO_DIR=no "INSTALL=install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
/usr/bin/cmake -S/<<PKGBUILDDIR>>/src -B/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf --check-build-system CMakeFiles/Makefile.cmake 0
make  -f CMakeFiles/Makefile2 preinstall
make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
make[2]: Nothing to be done for 'preinstall'.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "None"
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/bin/checkit_tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//example_configs
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//example_configs/README.txt
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//example_configs/cit_tiff-a_whitepaper.cfg
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//example_configs/cit_tiff6_baseline_SLUB.cfg
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//example_configs/cit_tiff6_complete.cfg
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//example_configs/cit_tiff6_geotiff_SLUB.cfg
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//example_configs/cit_tiff_baseline_minimal.cfg
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//example_configs/cit_tiff_ep.cfg
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/invalid_date.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_IFD_65355_tags.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_IFD_65355_zeroedtags.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_IFD_count_is_zero.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_IFD_incomplete.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_IFD_not_word_aligned.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_IFD_points_outside_filesize.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_IFD_with_endless_loop.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_empty_IFD.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_exifidf_offset_is_zero.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_invalid_type_imagewidth.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_offsets_are_zero.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_offsets_multiple_stripoffsets.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_offsets_multiple_used.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_offsets_not_word_aligned.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_tag_is_doubled.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_tag_points_outside_filesize.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_tag_with_ascii_with_multiple_zeros.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_tag_with_ascii_without_byte_zero.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_tag_with_contradictory_photometricinterpretation_and_colortag.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_tag_with_count_2M.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_tag_with_count_equal_null.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_tags_in_wrong_order.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_without_IFD.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/minimal_wrong_exififd_type.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/no_tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/no_tiff/README.txt
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/no_tiff/minimal.jxr
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/no_tiff/minimal.mdi
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/no_tiff/minimal.tiff64
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_fail/wrong_subfile_type__wrong_xresolution_alignment.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/bigendian
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/bigendian/minimal_valid_baseline_BigEndian.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/minimal_valid.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/minimal_valid_12bit.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/minimal_valid_16bit.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/minimal_valid_baseline.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/minimal_valid_multiple_stripoffsets.tif
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/minimal_valid_tiled.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/minimal_valid_with_exif.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff//tiffs_should_pass/minimal_valid_with_icc.tiff
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/BUGS
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/FAQ
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/LICENSE
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/README.1st_checkit
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/README.TIFFrisks
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/README.TIFFspecification
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/README.compile
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/README.grammar
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/README.icc
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/README.regex
-- Installing: /<<PKGBUILDDIR>>/debian/checkit-tiff/usr/share/checkit_tiff/TODO
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf'
   debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_install
find debian -name "LICENSE" -delete
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_installdocs -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_installchangelogs -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_installexamples -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_installman -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_installsystemduser -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_perl -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_link -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_strip_nondeterminism -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_compress -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_fixperms -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_missing -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_dwz -a -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_strip -a -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_makeshlibs -a -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_shlibdeps -a -a -O--sourcedirectory=src -O--buildsystem=cmake
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/checkit-tiff/usr/bin/checkit_tiff was not linked against ld-linux-armhf.so.3 (it uses none of the library's symbols)
   dh_installdeb -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_gencontrol -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_md5sums -a -O--sourcedirectory=src -O--buildsystem=cmake
   dh_builddeb -a -O--sourcedirectory=src -O--buildsystem=cmake
dpkg-deb: building package 'checkit-tiff' in '../checkit-tiff_0.4.2-1_armhf.deb'.
dpkg-deb: building package 'checkit-tiff-dbgsym' in '../checkit-tiff-dbgsym_0.4.2-1_armhf.deb'.
 dpkg-genbuildinfo --build=any
 dpkg-genchanges --build=any -mRaspbian wandboard test autobuilder <root@raspbian.org> >../checkit-tiff_0.4.2-1_armhf.changes
dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)
--------------------------------------------------------------------------------
Build finished at 2021-08-31T05:33:06Z

Finished
--------

I: Built successfully

+------------------------------------------------------------------------------+
| Post Build Chroot                                                            |
+------------------------------------------------------------------------------+


+------------------------------------------------------------------------------+
| Changes                                                                      |
+------------------------------------------------------------------------------+


checkit-tiff_0.4.2-1_armhf.changes:
-----------------------------------

Format: 1.8
Date: Thu, 26 Aug 2021 10:45:55 +0200
Source: checkit-tiff
Binary: checkit-tiff checkit-tiff-dbgsym
Architecture: armhf
Version: 0.4.2-1
Distribution: bookworm-staging
Urgency: medium
Maintainer: Raspbian wandboard test autobuilder <root@raspbian.org>
Changed-By: Andreas Tille <tille@debian.org>
Description:
 checkit-tiff - conformance checker for baseline TIFFs
Changes:
 checkit-tiff (0.4.2-1) unstable; urgency=medium
 .
   * Team upload.
   * Fix Vcs fields
   * Fix watchfile to detect new versions on github (routine-update)
   * Standards-Version: 4.6.0 (routine-update)
   * debhelper-compat 13 (routine-update)
   * Secure URI in copyright format (routine-update)
   * Add salsa-ci file (routine-update)
   * Rules-Requires-Root: no (routine-update)
   * No tab in license text (routine-update)
   * watch file standard 4 (routine-update)
Checksums-Sha1:
 f905081e66d3ec55a7eb3ee0b647cc4c24de3bdc 125256 checkit-tiff-dbgsym_0.4.2-1_armhf.deb
 2748297c8f148ae75dc210625d0d4492cd53a56e 5759 checkit-tiff_0.4.2-1_armhf.buildinfo
 ca2432ec4bebde2816114d0052ca265c40f6253f 849336 checkit-tiff_0.4.2-1_armhf.deb
Checksums-Sha256:
 b2fed45e1e4e31cca9a0a9e2290a82b06934f0966b9d605667990c56c7c2227b 125256 checkit-tiff-dbgsym_0.4.2-1_armhf.deb
 d7aa6c1fe1ebdcebf58735e04f1f8b228937a9ec675464f17c924d4b01a48761 5759 checkit-tiff_0.4.2-1_armhf.buildinfo
 e70d5ea8e4c4984660779c40695316e7353f5f69a3892bfeff4961dc31a88b24 849336 checkit-tiff_0.4.2-1_armhf.deb
Files:
 4ed99c8988205b49d6a03cdbe9888ec8 125256 debug optional checkit-tiff-dbgsym_0.4.2-1_armhf.deb
 f46e7a8656e304e1840fe8696983e0fd 5759 science optional checkit-tiff_0.4.2-1_armhf.buildinfo
 411c26c4e53c410026c32db8035adf2a 849336 science optional checkit-tiff_0.4.2-1_armhf.deb

+------------------------------------------------------------------------------+
| Package contents                                                             |
+------------------------------------------------------------------------------+


checkit-tiff-dbgsym_0.4.2-1_armhf.deb
-------------------------------------

 new Debian package, version 2.0.
 size 125256 bytes: control archive=544 bytes.
     394 bytes,    12 lines      control              
     106 bytes,     1 lines      md5sums              
 Package: checkit-tiff-dbgsym
 Source: checkit-tiff
 Version: 0.4.2-1
 Auto-Built-Package: debug-symbols
 Architecture: armhf
 Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>
 Installed-Size: 149
 Depends: checkit-tiff (= 0.4.2-1)
 Section: debug
 Priority: optional
 Description: debug symbols for checkit-tiff
 Build-Ids: a7a452818909e498e9a4f4c9bb03ffe2b7ffcfab

drwxr-xr-x root/root         0 2021-08-26 08:45 ./
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/lib/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/lib/debug/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/lib/debug/.build-id/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/lib/debug/.build-id/a7/
-rw-r--r-- root/root    141984 2021-08-26 08:45 ./usr/lib/debug/.build-id/a7/a452818909e498e9a4f4c9bb03ffe2b7ffcfab.debug
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/doc/
lrwxrwxrwx root/root         0 2021-08-26 08:45 ./usr/share/doc/checkit-tiff-dbgsym -> checkit-tiff


checkit-tiff_0.4.2-1_armhf.deb
------------------------------

 new Debian package, version 2.0.
 size 849336 bytes: control archive=2688 bytes.
     860 bytes,    21 lines      control              
    6672 bytes,    68 lines      md5sums              
 Package: checkit-tiff
 Version: 0.4.2-1
 Architecture: armhf
 Maintainer: Debian PhotoTools Maintainers <pkg-phototools-devel@lists.alioth.debian.org>
 Installed-Size: 1870
 Depends: libc6 (>= 2.7), libpcre3
 Section: science
 Priority: optional
 Homepage: https://github.com/SLUB-digitalpreservation/checkit_tiff
 Description: conformance checker for baseline TIFFs
  "checkit_tiff" is a conformance checker for baseline TIFFs (with various
  extensions). It works in different way than other tools. Instead to use
  a hardcoded rule set with predefined values, you are able to define tags
  and corresponding values more fine granulary. The rulesets are human
  readable and could be adapted to own needs.
  .
  The "checkit_tiff" works on commandline and therefore it is embedable
  in scripts
  .
  The tools are developed for purposes of curation and longterm
  preservation

drwxr-xr-x root/root         0 2021-08-26 08:45 ./
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/bin/
-rwxr-xr-x root/root    116184 2021-08-26 08:45 ./usr/bin/checkit_tiff
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/checkit_tiff/
-rw-r--r-- root/root        65 2018-05-08 07:36 ./usr/share/checkit_tiff/BUGS
-rw-r--r-- root/root      3799 2018-05-08 07:36 ./usr/share/checkit_tiff/FAQ
-rw-r--r-- root/root      2166 2018-05-08 07:36 ./usr/share/checkit_tiff/README.1st_checkit
-rw-r--r-- root/root      3493 2018-05-08 07:36 ./usr/share/checkit_tiff/README.TIFFrisks
-rw-r--r-- root/root       767 2018-05-08 07:36 ./usr/share/checkit_tiff/README.TIFFspecification
-rw-r--r-- root/root      2651 2018-05-08 07:36 ./usr/share/checkit_tiff/README.compile
-rw-r--r-- root/root      4146 2018-05-08 07:36 ./usr/share/checkit_tiff/README.grammar
-rw-r--r-- root/root       198 2018-05-08 07:36 ./usr/share/checkit_tiff/README.icc
-rw-r--r-- root/root       533 2018-05-08 07:36 ./usr/share/checkit_tiff/README.regex
-rw-r--r-- root/root       278 2018-05-08 07:36 ./usr/share/checkit_tiff/TODO
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/checkit_tiff/example_configs/
-rw-r--r-- root/root       746 2018-05-08 07:36 ./usr/share/checkit_tiff/example_configs/README.txt
-rw-r--r-- root/root      8832 2018-05-08 07:36 ./usr/share/checkit_tiff/example_configs/cit_tiff-a_whitepaper.cfg
-rw-r--r-- root/root     10329 2018-05-08 07:36 ./usr/share/checkit_tiff/example_configs/cit_tiff6_baseline_SLUB.cfg
-rw-r--r-- root/root     15591 2018-05-08 07:36 ./usr/share/checkit_tiff/example_configs/cit_tiff6_complete.cfg
-rw-r--r-- root/root     10853 2018-05-08 07:36 ./usr/share/checkit_tiff/example_configs/cit_tiff6_geotiff_SLUB.cfg
-rw-r--r-- root/root      3311 2018-05-08 07:36 ./usr/share/checkit_tiff/example_configs/cit_tiff_baseline_minimal.cfg
-rw-r--r-- root/root      5877 2018-05-08 07:36 ./usr/share/checkit_tiff/example_configs/cit_tiff_ep.cfg
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/checkit_tiff/tiffs_should_fail/
-rw-r--r-- root/root       558 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/invalid_date.tiff
-rw-r--r-- root/root    786466 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_IFD_65355_tags.tif
-rw-r--r-- root/root    786466 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_IFD_65355_zeroedtags.tif
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_IFD_count_is_zero.tiff
-rw-r--r-- root/root        28 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_IFD_incomplete.tif
-rw-r--r-- root/root       325 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_IFD_not_word_aligned.tif
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_IFD_points_outside_filesize.tif
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_IFD_with_endless_loop.tif
-rw-r--r-- root/root        52 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_empty_IFD.tif
-rw-r--r-- root/root       421 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_exifidf_offset_is_zero.tiff
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_invalid_type_imagewidth.tif
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_offsets_are_zero.tiff
-rw-r--r-- root/root       320 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_offsets_multiple_stripoffsets.tif
-rw-r--r-- root/root       918 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_offsets_multiple_used.tif
-rw-r--r-- root/root       324 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_offsets_not_word_aligned.tif
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_tag_is_doubled.tif
-rw-r--r-- root/root       252 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_tag_points_outside_filesize.tif
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_tag_with_ascii_with_multiple_zeros.tif
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_tag_with_ascii_without_byte_zero.tif
-rw-r--r-- root/root       633 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_tag_with_contradictory_photometricinterpretation_and_colortag.tiff
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_tag_with_count_2M.tif
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_tag_with_count_equal_null.tif
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_tags_in_wrong_order.tif
-rw-r--r-- root/root         8 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_without_IFD.tif
-rw-r--r-- root/root       421 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/minimal_wrong_exififd_type.tif
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/checkit_tiff/tiffs_should_fail/no_tiff/
-rw-r--r-- root/root       286 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/no_tiff/README.txt
-rw-r--r-- root/root       230 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/no_tiff/minimal.jxr
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/no_tiff/minimal.mdi
-rw-r--r-- root/root       382 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/no_tiff/minimal.tiff64
-rw-r--r-- root/root       241 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_fail/wrong_subfile_type__wrong_xresolution_alignment.tif
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/checkit_tiff/tiffs_should_pass/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/checkit_tiff/tiffs_should_pass/bigendian/
-rw-r--r-- root/root       240 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_pass/bigendian/minimal_valid_baseline_BigEndian.tiff
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_pass/minimal_valid.tiff
-rw-r--r-- root/root       522 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_pass/minimal_valid_12bit.tiff
-rw-r--r-- root/root       622 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_pass/minimal_valid_16bit.tiff
-rw-r--r-- root/root       323 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_pass/minimal_valid_baseline.tiff
-rw-r--r-- root/root       320 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_pass/minimal_valid_multiple_stripoffsets.tif
-rw-r--r-- root/root      8414 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_pass/minimal_valid_tiled.tiff
-rw-r--r-- root/root       421 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_pass/minimal_valid_with_exif.tiff
-rw-r--r-- root/root      7186 2018-05-08 07:36 ./usr/share/checkit_tiff/tiffs_should_pass/minimal_valid_with_icc.tiff
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/doc/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/doc/checkit-tiff/
-rw-r--r-- root/root      3799 2018-05-08 07:36 ./usr/share/doc/checkit-tiff/FAQ
-rw-r--r-- root/root       445 2021-08-26 08:45 ./usr/share/doc/checkit-tiff/changelog.Debian.gz
-rw-r--r-- root/root      2097 2021-08-26 08:45 ./usr/share/doc/checkit-tiff/copyright
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/doc/checkit-tiff/examples/
drwxr-xr-x root/root         0 2018-05-08 07:36 ./usr/share/doc/checkit-tiff/examples/example_configs/
-rw-r--r-- root/root       746 2018-05-08 07:36 ./usr/share/doc/checkit-tiff/examples/example_configs/README.txt
-rw-r--r-- root/root      8832 2018-05-08 07:36 ./usr/share/doc/checkit-tiff/examples/example_configs/cit_tiff-a_whitepaper.cfg
-rw-r--r-- root/root     10329 2018-05-08 07:36 ./usr/share/doc/checkit-tiff/examples/example_configs/cit_tiff6_baseline_SLUB.cfg
-rw-r--r-- root/root     15591 2018-05-08 07:36 ./usr/share/doc/checkit-tiff/examples/example_configs/cit_tiff6_complete.cfg
-rw-r--r-- root/root     10853 2018-05-08 07:36 ./usr/share/doc/checkit-tiff/examples/example_configs/cit_tiff6_geotiff_SLUB.cfg
-rw-r--r-- root/root      3311 2018-05-08 07:36 ./usr/share/doc/checkit-tiff/examples/example_configs/cit_tiff_baseline_minimal.cfg
-rw-r--r-- root/root      5877 2018-05-08 07:36 ./usr/share/doc/checkit-tiff/examples/example_configs/cit_tiff_ep.cfg
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/man/
drwxr-xr-x root/root         0 2021-08-26 08:45 ./usr/share/man/man1/
-rw-r--r-- root/root       427 2021-08-26 08:45 ./usr/share/man/man1/checkit_tiff.1.gz


+------------------------------------------------------------------------------+
| Post Build                                                                   |
+------------------------------------------------------------------------------+


+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: armhf
Build-Space: 9476
Build-Time: 78
Distribution: bookworm-staging
Host Architecture: armhf
Install-Time: 378
Job: checkit-tiff_0.4.2-1
Machine Architecture: armhf
Package: checkit-tiff
Package-Time: 509
Source-Version: 0.4.2-1
Space: 9476
Status: successful
Version: 0.4.2-1
--------------------------------------------------------------------------------
Finished at 2021-08-31T05:33:06Z
Build needed 00:08:29, 9476k disc space