Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Sep 2015 08:04:13 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287454 - head/contrib/file/src
Message-ID:  <201509040804.t8484Dth026994@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509040804.t8484Dth026994>