diff options
author | Christos Zoulas <christos@zoulas.com> | 2020-06-08 17:38:27 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2020-06-08 17:38:27 +0000 |
commit | 3e18d598622fd7f792ea7e68dad738fc7bbb4dc4 (patch) | |
tree | f26da6978d18b2fed050e8708057935c1301401c /src/file.h | |
parent | 71d1edf3f15109a6697db6ba15c236d519000e70 (diff) | |
download | file-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. */ |