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

Skip to content
Unverified Commit 6905352f authored by Shrikara B's avatar Shrikara B Committed by Michael Bestas
Browse files

CCodec: Avoid OOB memory access in some cases

During releaseBuffer, if the caller has not provided
pointer to c2buffer, then no need to generate compBuffer,
if doesn't exist already.

If the raw color format is not recognized by frameworks,
then ImageCopy (inside asC2Buffer function) might end up
resulting in out-of-bound memory access for few resolutions

CRs-Fixed: 3341384
Change-Id: I39b06a571e6244931c73ef99675f4d9e2dcf247e
parent bdafb3b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment