commit | 6ae640b1f33464969d401e00b44b3b5157f1ce09 | [log] [tgz] |
---|---|---|
author | Edward O'Callaghan <quasisec@google.com> | Wed Nov 17 14:24:04 2021 +1100 |
committer | Nico Huber <nico.h@gmx.de> | Thu Jan 05 16:15:22 2023 +0000 |
tree | d8a5dd7c6fde8db17b2e14fb73577ef5f3c22adc | |
parent | 69c324a7d4015c3ca4ba8d39a1c42670369f5afb [diff] |
flashrom.c: Validate before allocate in verify_range() Simplify a goto away for free'ing a buffer by validating before attempting to allocate. Change-Id: Iae886f203d1c59ae9a89421f7483a4ec3f747256 Signed-off-by: Edward O'Callaghan <quasisec@google.com> Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/59372 Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com> Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom-stable/+/71439 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>