commit | eb4da48fa48c69e303b410c4bf7dd7bea8108406 | [log] [tgz] |
---|---|---|
author | Mark Wielaard <mjw@redhat.com> | Tue Apr 22 16:43:11 2014 +0200 |
committer | Mark Wielaard <mjw@redhat.com> | Thu Apr 24 11:33:54 2014 +0200 |
tree | 00e1e9a0e852bc9c7f754e94b69e3aa8c2cbd275 | |
parent | fe4b5fd34e25117026f6f96e392009f6f42e3dcc [diff] |
libdw (get_sleb128_step): Remove undefined behavior. As pointed out by gcc -fsanitize=undefined left shifting a negative value is undefined. Replace it with a multiplication of the signed value as suggested by Richard Henderson and Josh Stone. Signed-off-by: Mark Wielaard <mjw@redhat.com>