summaryrefslogtreecommitdiff
path: root/AK/LEB128.h
AgeCommit message (Collapse)Author
2023-02-13Everywhere: Remove the `AK::` qualifier from Stream usagesTim Schumacher
2023-02-04AK: Make LEB128 decoding work with `read_value`Tim Schumacher
2023-02-04AK: Port `LEB128` to the new `AK::Stream`Tim Schumacher
2023-02-04AK: Don't restore the stream offset when failing to read an LEB128Tim Schumacher
Pretty much no other read function does this, and getting rid of the typename template parameter for the stream makes the transition to the new AK::Stream a bit easier.
2023-01-29AK: Deprecate the old `AK::Stream`Tim Schumacher
This also removes a few cases where the respective header wasn't actually required to be included.
2022-11-26AK: Make it possible to not `using` AK classes into the global namespaceAndreas Kling
This patch adds the `USING_AK_GLOBALLY` macro which is enabled by default, but can be overridden by build flags. This is a step towards integrating Jakt and AK types.
2022-07-09AK: Always check shift amount in LEB128 read functionskleines Filmröllchen
Even shifting 0 by more than the value size is UB.
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2021-08-31AK: Don't perform the shift when it's too large when decoding LEB128Ali Mohammad Pur
Prior to this, we calculated whether the shift was too large for the result, and then did the shift regardless. Found by OSS-Fuzz: https://oss-fuzz.com/testcase-detail/6046441716973568
2021-05-31AK: Handle LEB128 encoded values that are too large for the result typeAndrew Kaster
Previously, we would go crazy and shift things way out of bounds. Add tests to verify that the decoding algorithm is safe around the limits of the result type.
2021-05-04AK: Make LEB128 capable of reading into any typeAli Mohammad Pur
And not just ssize_t/size_t. This is useful in cases where the output size is supposed to be larger than size_t.
2021-05-04AK: Move the LEB128 logic to AK and make it usable with InputStreamAli Mohammad Pur