Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d8f17c54 authored by Alec Mouri's avatar Alec Mouri
Browse files

Fail gracefully when allocating screenshot buffers

Some devices have limited protected memory, and over-allocate buffers in
the decoder during DRM playback of high resolution content. The decoder
is able to fail gracefully, but SurfaceFlinger is stricter, causing the
device to crash.

More generally, SurfaceFlinger should not be so strict, because a
malicious app could intentionally allocate many buffers and cause the
system to crash. So, fail gracefully instead to prevent the entire
system from falling over.

Bug: 236200340
Test: 4K DRM playback
Change-Id: Ia0018974fffc753342f78917ede0b67faa94916b
parent 90408871
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment