diff options
author | Xin LI <delphij@FreeBSD.org> | 2015-09-04 08:04:12 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2015-09-04 08:04:12 +0000 |
commit | 072d210fa1fe16bdde85d2f20cfaf3132b326dec (patch) | |
tree | ba36356ca9b89ae422138b6ae2dc3f67eade9e44 /contrib/file | |
parent | 9fc5c47fa5c7fa58d61245f0408611943e613164 (diff) | |
download | src-test-072d210fa1fe16bdde85d2f20cfaf3132b326dec.tar.gz src-test-072d210fa1fe16bdde85d2f20cfaf3132b326dec.zip |
Fix build.
Notes
Notes:
svn path=/head/; revision=287454
Diffstat (limited to 'contrib/file')
-rw-r--r-- | contrib/file/src/readelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/file/src/readelf.c b/contrib/file/src/readelf.c index bc6e7f6b42e45..9631591622abf 100644 --- a/contrib/file/src/readelf.c +++ b/contrib/file/src/readelf.c @@ -1052,7 +1052,7 @@ doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, /* Things we can determine when we seek */ switch (xsh_type) { case SHT_NOTE: - if (xsh_size + xsh_offset > (uintmax_t)fsize) { + if (xsh_size + (uintmax_t)xsh_offset > (uintmax_t)fsize) { if (file_printf(ms, ", note offset/size 0x%jx+0x%jx exceeds" " file size 0x%jx", (uintmax_t)xsh_offset, |