Ensure blob_attr length check does not perform out of bounds reads
authorTobias Schramm <tobleminer@gmail.com>
Wed, 28 Nov 2018 12:39:29 +0000 (13:39 +0100)
committerPetr Štetiar <ynezz@true.cz>
Wed, 25 Dec 2019 09:31:58 +0000 (10:31 +0100)
commit143303149c8b87fec76b7f2f4b365baae1e18d2c
tree5dcaaa49258490a8acdbc04f46c31874cfe8d887
parentf2b2ee441adb22bdcab7247589545eb27c941d78
Ensure blob_attr length check does not perform out of bounds reads

Before there might have been as little as one single byte left which
would result in 3 bytes of blob_attr->id_len being out of bounds.

Acked-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
[line wrapped < 72 chars]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
blob.h
blobmsg.h