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

Commit ece61b71 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6773961 from fbaedd7c to rvc-qpr1-release

Change-Id: If56f27d0d888ad57d47d37c5087b2c8e3ddd70d2
parents f13f1997 fbaedd7c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -142,7 +142,8 @@ status_t BnCameraClient::onTransact(
            camera_frame_metadata_t metadata;
            if (data.dataAvail() > 0) {
                metadata.number_of_faces = data.readInt32();
                if (metadata.number_of_faces <= 0 ||
                // Zero faces is a valid case, to notify clients that no faces are now visible
                if (metadata.number_of_faces < 0 ||
                        metadata.number_of_faces > (int32_t)(INT32_MAX / sizeof(camera_face_t))) {
                    ALOGE("%s: Too large face count: %d", __FUNCTION__, metadata.number_of_faces);
                    return BAD_VALUE;