Prechádzať zdrojové kódy

qcacld-3.0: Use of %p in htt_t2h_tx_ppdu_log_print()

Introducing integer overflow checks in htt_t2h_tx_ppdu_log_print()
contained use of %p which violates security guidelines.

Change %p to %pK.

Change-Id: I9e886e9b065ea6902aeedc3d9c25aac76a07d6de
CRs-Fixed: 2252217
jitiphil 6 rokov pred
rodič
commit
2de7d6ef8e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      core/dp/htt/htt_fw_stats.c

+ 1 - 1
core/dp/htt/htt_fw_stats.c

@@ -968,7 +968,7 @@ htt_t2h_tx_ppdu_log_print(struct ol_fw_tx_dbg_ppdu_msg_hdr *hdr,
 			p8 = (uint8_t *) record;
 			calculated_p8 = p8 + sizeof(struct ol_fw_tx_dbg_ppdu_base);
 			if (calculated_p8 < p8) {
-				qdf_err("Overflow due to record %p", p8);
+				qdf_err("Overflow due to record %pK", p8);
 				continue;
 			}
 			p8 = calculated_p8;