From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6710995630113842955==" MIME-Version: 1.0 From: Mark Wielaard To: elfutils-devel@lists.fedorahosted.org Subject: Re: [PATCH] libdw: Undefined behavior in get_sleb128_step. Date: Tue, 28 Apr 2015 14:03:28 +0200 Message-ID: <1430222608.1938.184.camel@bordewijk.wildebeest.org> In-Reply-To: 1429699571-1995-1-git-send-email-mjw@redhat.com --===============6710995630113842955== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, 2015-04-22 at 12:46 +0200, Mark Wielaard wrote: > gcc -fsanitize=3Dundefined pointed out that for too big sleb128 values we > could shift into the sign bit. So for sleb128 values that have to fit > in a (signed) int64_t variable reduce the max number of steps by one. Pushed to master. --===============6710995630113842955==--