svn commit: r287454 - head/contrib/file/src

Xin LI delphij at FreeBSD.org
Fri Sep 4 08:04:13 UTC 2015


Author: delphij
Date: Fri Sep  4 08:04:12 2015
New Revision: 287454
URL: https://svnweb.freebsd.org/changeset/base/287454

Log:
  Fix build.

Modified:
  head/contrib/file/src/readelf.c

Modified: head/contrib/file/src/readelf.c
==============================================================================
--- head/contrib/file/src/readelf.c	Fri Sep  4 05:56:14 2015	(r287453)
+++ head/contrib/file/src/readelf.c	Fri Sep  4 08:04:12 2015	(r287454)
@@ -1052,7 +1052,7 @@ doshn(struct magic_set *ms, int clazz, i
 		/* 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,


More information about the svn-src-head mailing list