1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:07:34 +00:00

AK: Fix inverted condition in unsigned LEB128 decode

This commit is contained in:
Andreas Kling 2020-11-13 10:10:59 +01:00
parent 1993ccb456
commit cfc5d146d3

View file

@ -108,7 +108,7 @@ public:
const u8 byte = m_bytes[m_offset++]; const u8 byte = m_bytes[m_offset++];
result |= (byte & 0x7f) << shift; result |= (byte & 0x7f) << shift;
if (byte & 0x80) if ((byte & 0x80) == 0)
break; break;
shift += 7; shift += 7;
} }