3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-05-30 05:07:22 +02:00

monitor: add size check for interworking IE parsing

Fixes: e0c9b68467fa ("monitor: parse/print HS2.0/WFA IEs")
This commit is contained in:
James Prestwood 2025-04-16 10:33:41 -07:00 committed by Denis Kenzior
parent e5c41a8024
commit 8dff156eb6

View File

@ -1915,7 +1915,7 @@ static void print_ie_interworking(unsigned int level,
size--;
ptr++;
if (!size)
if (size < 2)
return;
/*