Skip to content

Commit

Permalink
Merge "qcacld-3.0: Fix integer underflow in assoc response frame"
Browse files Browse the repository at this point in the history
  • Loading branch information
Linux Build Service Account authored and Gerrit - the friendly Code Review server committed Mar 9, 2021
2 parents 4cc2c33 + ba0f55e commit ff548fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/mac/src/pe/lim/lim_process_fils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2238,6 +2238,11 @@ QDF_STATUS aead_decrypt_assoc_rsp(tpAniSirGlobal mac_ctx,
uint8_t *fils_ies;
struct pe_fils_session *fils_info = session->fils_info;

if (*n_frame < FIXED_PARAM_OFFSET_ASSOC_RSP) {
pe_debug("payload len is less than ASSOC RES offset");
return QDF_STATUS_E_FAILURE;
}

status = find_ie_data_after_fils_session_ie(mac_ctx, p_frame +
FIXED_PARAM_OFFSET_ASSOC_RSP,
((*n_frame) -
Expand Down

0 comments on commit ff548fe

Please sign in to comment.