This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libdw: Undefined behavior in get_sleb128_step.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 28 Apr 2015 14:03:28 +0200
- Subject: Re: [PATCH] libdw: Undefined behavior in get_sleb128_step.
On Wed, 2015-04-22 at 12:46 +0200, Mark Wielaard wrote:
> gcc -fsanitize=undefined 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.