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

Verified Commit 5e63c67c authored by android-t2's avatar android-t2 Committed by Ahmed Harhash
Browse files

Integrate security patch 2023-07-05-CVE-2023-24854

Change-Id: I0fd60fc08bbde3170e35f1558e165e8b8c3fc0f1
parent 694aebf4
Loading
Loading
Loading
Loading
+6 −5
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-License-Identifier: GPL-2.0-only
/*
/*
 * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
 */
 */


#define pr_fmt(fmt) "icnss2_qmi: " fmt
#define pr_fmt(fmt) "icnss2_qmi: " fmt
@@ -971,8 +972,8 @@ int icnss_wlfw_qdss_data_send_sync(struct icnss_priv *priv, char *file_name,
		     resp->total_size == total_size)
		     resp->total_size == total_size)
		    && (resp->seg_id_valid == 1 && resp->seg_id == req->seg_id)
		    && (resp->seg_id_valid == 1 && resp->seg_id == req->seg_id)
		    && (resp->data_valid == 1 &&
		    && (resp->data_valid == 1 &&
		resp->data_len <= QMI_WLFW_MAX_DATA_SIZE_V01)) {
			resp->data_len <= QMI_WLFW_MAX_DATA_SIZE_V01)

		    && resp->data_len <= remaining) {
			memcpy(p_qdss_trace_data_temp,
			memcpy(p_qdss_trace_data_temp,
			       resp->data, resp->data_len);
			       resp->data, resp->data_len);
		} else {
		} else {