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

Commit 7ae56e65 authored by Praveen Kurapati's avatar Praveen Kurapati
Browse files

msm: ipa3: Fix to avoid structural padding



Observing memory out-of-bounds issue while decoding
the QMI_MAX_LEN value. IDL generator not considering
structural padding into effect. Add changes to overcome
the memory alignment issue.

Change-Id: I7e44e6bedfe5736a156c3280e7c9b6cba7ccfe25
Signed-off-by: default avatarPraveen Kurapati <pkurapat@codeaurora.org>
parent eca47d45
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -87,6 +87,8 @@ enum ipa_qmi_error_type_v01 {
	IPA_QMI_ERROR_TYPE_MAX_ENUM_VAL_V01 = IPA_INT_MAX,
};

#pragma pack(push, 1)

struct ipa_qmi_response_type_v01 {
	uint16_t result;
	uint16_t error;
@@ -2671,6 +2673,8 @@ struct ipa_bw_change_ind_msg_v01 {
	/* Kbps */
	uint32_t peak_bw_dl;
}; /* Message */

#pragma pack(pop)
#define IPA_BW_CHANGE_IND_MSG_V01_MAX_MSG_LEN 14

/*Service Message Definition*/