cbfs: Check offset range when reading a file
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:27 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:42:05 +0000 (18:42 -0400)
commit99eaf1fcaa260dceea25ed25830498abf70f0728
tree4ef77f8633898c989cd3b25851e6e00cdead0c43
parent15dd815c75d8d88816231e5e52b03835210cc93e
cbfs: Check offset range when reading a file

Add a check that the offset is within the allowed range.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 331155)
fs/cbfs/cbfs.c