summaryrefslogtreecommitdiffstats
path: root/cli_classic.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-10-19 14:20:36 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-10-22 20:09:38 +0000
commit51261541be66727e4823a6dd342771ea00714a1c (patch)
tree1bb6af89e90629f0cc016cc46e3485051b3eb3bd /cli_classic.c
parentc64486b8f5d344f48ca50d7f2ed295487ac4d17d (diff)
downloadflashrom-51261541be66727e4823a6dd342771ea00714a1c.tar.gz
flashrom-51261541be66727e4823a6dd342771ea00714a1c.tar.bz2
flashrom-51261541be66727e4823a6dd342771ea00714a1c.zip
it87spi.c: Prevent use-after-free bug
The memory for the `param` string is aliased by `dualbiosindex_suffix`. Moreover, `errno` could have been modified by the call to `free()`. Therefore, only free the former when there are no more uses of either. Change-Id: I79f18f6077c77c0cbb8bfa431e17f9b079f11c95 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/46551 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'cli_classic.c')
0 files changed, 0 insertions, 0 deletions