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

Skip to content
Commit dc519093 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: memcpy Blob header rather than directly writing fields

The CameraBlob embedded in the output bitstream may not be word aligned.
Directly casting a byte* to a CameraBlob and assigning its field could
cause alignment exception.

Use memcpy from a CameraBlob struct instead.

Test: Partner tested on 32-bit system
Bug: 260045056
Change-Id: I34b6ba8ded458b2dc59638a50237b7a1f64bfb86
parent 15d9586c
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