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

Commit f02f06c4 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by Gerrit Code Review
Browse files

Merge "camera: check Intent entry count before reading it"

parents 1d2909b3 c90f4c7c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1750,6 +1750,9 @@ status_t Parameters::updateRequest(CameraMetadata *request) const {

    camera_metadata_entry_t intent =
            request->find(ANDROID_CONTROL_CAPTURE_INTENT);

    if (intent.count == 0) return BAD_VALUE;

    if (intent.data.u8[0] == ANDROID_CONTROL_CAPTURE_INTENT_STILL_CAPTURE) {
        res = request->update(ANDROID_CONTROL_AE_TARGET_FPS_RANGE,
                fastInfo.bestStillCaptureFpsRange, 2);