Replace use of blobmsg_check_attr by blobmsg_check_attr_len
authorTobias Schramm <tobleminer@gmail.com>
Tue, 13 Nov 2018 03:16:12 +0000 (04:16 +0100)
committerPetr Štetiar <ynezz@true.cz>
Wed, 25 Dec 2019 09:31:58 +0000 (10:31 +0100)
commitcd3059796a576673d4af696c8b696ab5de729a3c
tree7d9b9922c45f9e9cba41827920c46b2b69d12afe
parent143303149c8b87fec76b7f2f4b365baae1e18d2c
Replace use of blobmsg_check_attr by blobmsg_check_attr_len

blobmsg_check_attr_len adds a length limit specifying the max offset
from attr that can be read safely.

Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
[rebased and reworked, line wrapped commit message, _safe -> _len]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
blobmsg.c
blobmsg.h