eiwd

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

commit 938e05689605fb4138bfc886e4677204bc38df41
parent 5e9178b9de99cbde1e1339fbcd15445d59078b39
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Fri, 14 Jan 2022 09:48:48 -0600

erp: Avoid potential overflow

When checking that the length is valid, avoid potentially overflowing
'start + len'

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

diff --git a/src/erp.c b/src/erp.c @@ -131,7 +131,7 @@ static bool erp_tlv_iter_next(struct erp_tlv_iter *iter) else len = 4; - if (tlv + len > end) + if (len > end - tlv) return false; iter->tag = tag;