diff options
author | Richard Spiegel <richard.spiegel@silverbackltd.com> | 2018-01-17 10:23:19 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-01-24 16:24:29 +0000 |
commit | 137484dee70b378ee557de4e6bbe59716e4791f0 (patch) | |
tree | fddc4b2a15f627631de37385cd7fb1281c56bc24 /src/drivers | |
parent | 1014de685883186b4a501118c66fb35bfe5b588e (diff) |
util/amdfwtool/amdfwtool.c: Verify it actually read bytes
The function read() returns the number of bytes actually read. Program is
assuming it actually read the required number of bytes without checking.
This is wrong.
This fixes CIDs 1353019 and 1353021
BUG=b:72062481
TEST=Build no errors
Change-Id: I22d41b3de4eac5369f512f78b1b31cc1a250f787
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/23304
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers')
0 files changed, 0 insertions, 0 deletions