mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-08 16:12:23 +02:00
AnonymousBuffer is backed by shared memory, not heap allocation. The MAX_DECODED_SIZE limit in decode_size() is meant to prevent OOM from malicious peers claiming huge sizes that would cause heap allocations, but this doesn't apply to AnonymousBuffer since the memory is already allocated by the sender. This fixes decoding of large animated images (e.g. 300 frames at 240x240) where the total bitmap data exceeds 64 MiB.
5.4 KiB
5.4 KiB