Files
ladybird/Libraries/LibIPC/Decoder.cpp
Andreas Kling 51ddfaafbf LibIPC: Don't apply decode size limit to AnonymousBuffer
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.
2026-01-24 15:23:02 +01:00

5.4 KiB