Fix for issue 26519

BUG=26519
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2238163003 .
This commit is contained in:
Siva Annamalai 2016-08-16 14:24:08 -07:00
parent dd731b4bfe
commit 462204e557

View file

@ -11499,7 +11499,7 @@ static intptr_t DecodeSLEB128(const uint8_t* data,
} while ((part & 0x80) != 0);
if ((shift < (sizeof(value) * 8)) && ((part & 0x40) != 0)) {
value |= static_cast<intptr_t>(-1) << shift;
value |= static_cast<intptr_t>(kUwordMax << shift);
}
return value;
}