[PATCH 5/9] monitor: add size check for interworking IE parsing
James Prestwood <[email protected]> Wed, 16 Apr 2025 05:34:10 -0700
| Newsgroups | dev.linux.lists.iwd |
|---|---|
| Message-ID | <[email protected]> |
--- monitor/nlmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/nlmon.c b/monitor/nlmon.c index 14a29eab..7924f6f2 100644 --- a/monitor/nlmon.c +++ b/monitor/nlmon.c @@ -1915,7 +1915,7 @@ static void print_ie_interworking(unsigned int level, size--; ptr++; - if (!size) + if (size < 2) return; /* -- 2.34.1