eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 60e0a5073a5fa64ba53d6f3af5bd2042b37be7c5
parent d2ca0c4f18cd0e9a1b14a9b8d471df7960ad178c
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Fri, 14 Jan 2022 11:08:48 -0600

anqputil: Avoid potential overflow

When checking that the length is valid, avoid potentially overflowing
    'anqp + l_get_le16(anqp + 2)'

Diffstat:
Msrc/anqputil.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/anqputil.c b/src/anqputil.c @@ -48,7 +48,7 @@ bool anqp_iter_next(struct anqp_iter *iter, uint16_t *id, uint16_t *len, if (iter->pos + 4 >= iter->max) return false; - if (anqp + l_get_le16(anqp + 2) > end) + if (l_get_le16(anqp + 2) > end - anqp) return false; *id = l_get_le16(anqp);