Date: Thu, 16 Jan 2014 06:26:03 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r260701 - head/lib/libkvm Message-ID: <201401160626.s0G6Q3cK047119@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Thu Jan 16 06:26:03 2014 New Revision: 260701 URL: http://svnweb.freebsd.org/changeset/base/260701 Log: Handle truncation of the size returned by _kvm_kvatop(). Cores can have segments larger than INT_MAX. Modified: head/lib/libkvm/kvm_ia64.c Modified: head/lib/libkvm/kvm_ia64.c ============================================================================== --- head/lib/libkvm/kvm_ia64.c Thu Jan 16 00:20:42 2014 (r260700) +++ head/lib/libkvm/kvm_ia64.c Thu Jan 16 06:26:03 2014 (r260701) @@ -371,5 +371,5 @@ _kvm_kvatop(kvm_t *kd, u_long va, off_t size_t sz; sz = kd->vmst->kvatop(kd, va, ofs); - return (sz); + return ((sz > INT_MAX) ? INT_MAX : sz); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401160626.s0G6Q3cK047119>