mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Fix inverted condition in unsigned LEB128 decode
This commit is contained in:
parent
1993ccb456
commit
cfc5d146d3
Notes:
sideshowbarker
2024-07-19 01:24:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/cfc5d146d39
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue