summaryrefslogtreecommitdiff
path: root/src/file.h
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2020-06-08 17:38:27 +0000
committerChristos Zoulas <christos@zoulas.com>2020-06-08 17:38:27 +0000
commit3e18d598622fd7f792ea7e68dad738fc7bbb4dc4 (patch)
treef26da6978d18b2fed050e8708057935c1301401c /src/file.h
parent71d1edf3f15109a6697db6ba15c236d519000e70 (diff)
downloadfile-git-3e18d598622fd7f792ea7e68dad738fc7bbb4dc4.tar.gz
back to using unsigned offsets since ClusterFuzz bitches about integer overflow.
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file.h b/src/file.h
index a1791eab..28ebc0c1 100644
--- a/src/file.h
+++ b/src/file.h
@@ -27,7 +27,7 @@
*/
/*
* file.h - definitions for file(1) program
- * @(#)$File: file.h,v 1.219 2020/06/07 21:58:01 christos Exp $
+ * @(#)$File: file.h,v 1.220 2020/06/08 17:38:27 christos Exp $
*/
#ifndef __file_h__
@@ -423,9 +423,9 @@ struct magic_set {
size_t blen; /* Length of buffer */
char *pbuf; /* Printable buffer */
} o;
- int32_t offset; /* a copy of m->offset while we */
+ uint32_t offset; /* a copy of m->offset while we */
/* are working on the magic entry */
- int32_t eoffset; /* offset from end of file */
+ uint32_t eoffset; /* offset from end of file */
int error;
int flags; /* Control magic tests. */
int event_flags; /* Note things that happened. */