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

Commit 59350f38 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: adm: Fix memory overread in adm callback"

parents 497668e4 4eb791e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1572,7 +1572,8 @@ static int32_t adm_callback(struct apr_client_data *data, void *priv)
			idx = ADM_GET_PARAMETER_LENGTH * copp_idx;
			if ((payload[0] == 0) && (data->payload_size >
				(4 * sizeof(*payload))) &&
				(data->payload_size - 4 >=
				(data->payload_size -
				(4 * sizeof(*payload)) >=
				payload[3]) &&
				(ARRAY_SIZE(adm_get_parameters) >
				idx) &&