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

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

Merge "qcacld-3.0: Validate NDP app info length before accessing NDP app info"...

Merge "qcacld-3.0: Validate NDP app info length before accessing NDP app info" into wlan-cld3.driver.lnx.1.1.r61-rel
parents d8195dd6 34fa11ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -35,7 +36,6 @@ struct wireless_dev;
#define NAN_SOCIAL_CHANNEL_5GHZ_LOWER_BAND 44
#define NAN_SOCIAL_CHANNEL_5GHZ_UPPER_BAND 149

#define NDP_APP_INFO_LEN 255
#define NDP_PMK_LEN 32
#define NDP_SCID_BUF_LEN 256
#define NDP_NUM_INSTANCE_ID 255
+2 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -55,6 +56,7 @@
#define WMA_RESUME_TIMEOUT                 6000
#define MAX_MEM_CHUNKS                     32
#define NAN_CLUSTER_ID_BYTES               4
#define NDP_APP_INFO_LEN                   255

#define WMA_CRASH_INJECT_TIMEOUT           5000

+6 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -720,6 +721,11 @@ static int wma_ndp_confirm_event_handler(void *handle, uint8_t *event_info,
			WMA_LOGE(FL("malloc failed"));
			return QDF_STATUS_E_NOMEM;
		}

		if (ndp_confirm.ndp_info.ndp_app_info_len > NDP_APP_INFO_LEN)
			ndp_confirm.ndp_info.ndp_app_info_len =
							NDP_APP_INFO_LEN;

		qdf_mem_copy(&ndp_confirm.ndp_info.ndp_app_info,
			     event->ndp_app_info,
			     ndp_confirm.ndp_info.ndp_app_info_len);