commit | 860b5dceb701f89195842e188e67a210599508eb | [log] [tgz] |
---|---|---|
author | Andreas Färber <afaerber@suse.de> | Sat Jan 27 16:46:59 2018 +0100 |
committer | Andreas Färber <afaerber@suse.de> | Sat Jan 27 16:46:59 2018 +0100 |
tree | cceb0086def21600b7da088bf7e1d22d38b5a657 | |
parent | 81e6a68550c3b83d59cd8bb78450c55f471d900b [diff] |
fiptool: Fix use after free Commit 880b9e8b4c99ad99eee14079d5a6162733ef4931 (Add padding at the end of the last entry) added code using toc_entry pointer, whose memory is already freed via variable buf. This causes enormous padding on openSUSE. Free the memory buffer only after padding is done. Signed-off-by: Andreas Färber <afaerber@suse.de>