mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-26 00:57:39 +01:00
(_ReadSLEB): Fix typo: shift needs to be increment before checking
for loop-exit. Otherwise, sign-extension may clobber the most recently read 7 bits. (Logical change 1.284)
This commit is contained in:
parent
022a505678
commit
15df8b804c
1 changed files with 1 additions and 1 deletions
|
@ -11,9 +11,9 @@ _ReadSLEB (unsigned char **dpp)
|
|||
{
|
||||
byte = *bp++;
|
||||
result |= (byte & 0x7f) << shift;
|
||||
shift += 7;
|
||||
if ((byte & 0x80) == 0)
|
||||
break;
|
||||
shift += 7;
|
||||
}
|
||||
|
||||
if (shift < 8 * sizeof (unw_word_t) && (byte & 0x40) != 0)
|
||||
|
|
Loading…
Reference in a new issue