summaryrefslogtreecommitdiffstats
path: root/src/file_tiff.h
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-02-25 08:36:19 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2015-02-25 08:36:19 +0100
commitca2efe739e144b535aa3079c74062d75bc3fa51e (patch)
tree4e2be7a61b460f360d62a74da7109e3dfde441a0 /src/file_tiff.h
parent7ca2fc46caf6846ddf162625bb835b2589413eca (diff)
Workaround gcc bug 52991
Diffstat (limited to 'src/file_tiff.h')
-rw-r--r--src/file_tiff.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file_tiff.h b/src/file_tiff.h
index ee068b3..db5fe87 100644
--- a/src/file_tiff.h
+++ b/src/file_tiff.h
@@ -59,10 +59,13 @@ typedef struct {
uint32_t tdir_offset; /* byte offset to field data */
} TIFFDirEntry;
+/* Work around a gcc bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991 */
+#pragma pack(1)
struct ifd_header {
uint16_t nbr_fields;
TIFFDirEntry ifd;
} __attribute__ ((__packed__));
+#pragma pack()
time_t get_date_from_tiff_header(const TIFFHeader *tiff, const unsigned int tiff_size);
const char *find_tag_from_tiff_header(const TIFFHeader *tiff, const unsigned int tiff_size, const unsigned int tag, const char **potential_error);