diff options
author | Edward O'Callaghan <quasisec@google.com> | 2021-11-17 14:24:04 +1100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-12-15 13:54:09 +0000 |
commit | 43f998274f788ade1ab01e62fb025b7d54f9ab24 (patch) | |
tree | 507008e098afe1c283e7bbf426869a726a6428de /edi.c | |
parent | ea0ae153dd43ef6651a0824d251341af635b1fdd (diff) | |
download | flashrom-43f998274f788ade1ab01e62fb025b7d54f9ab24.tar.gz flashrom-43f998274f788ade1ab01e62fb025b7d54f9ab24.tar.bz2 flashrom-43f998274f788ade1ab01e62fb025b7d54f9ab24.zip |
flashrom.c: Validate before allocate in verify_range()
Simplify a goto away for free'ing a buffer by validating
before attempting to allocate.
BUG=none
TEST=builds
Change-Id: Iae886f203d1c59ae9a89421f7483a4ec3f747256
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/59372
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Diffstat (limited to 'edi.c')
0 files changed, 0 insertions, 0 deletions