[PATCH 0/2] elf2dmp: Fix minor Coverity nits

Peter Maydell posted 2 patches 2 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210901143910.17112-1-peter.maydell@linaro.org
Maintainers: Viktor Prutyanov <viktor.prutyanov@phystech.edu>
There is a newer version of this series
contrib/elf2dmp/download.c | 28 +++++++++++++++++-----------
contrib/elf2dmp/pdb.c      |  4 ++++
2 files changed, 21 insertions(+), 11 deletions(-)
[PATCH 0/2] elf2dmp: Fix minor Coverity nits
Posted by Peter Maydell 2 years, 6 months ago
Coverity complains about a couple of minor issues in elf2dmp:
 * we weren't checking the return value from curl_easy_setopt()
 * we might divide by zero if presented with a corrupt PDB file

This patchseries fixes those.

NB: I have only compile tested this as I don't have any
files to test it with.

thanks
-- PMM

Peter Maydell (2):
  elf2dmp: Check curl_easy_setopt() return value
  elf2dmp: Fail cleanly if PDB file specifies zero block_size

 contrib/elf2dmp/download.c | 28 +++++++++++++++++-----------
 contrib/elf2dmp/pdb.c      |  4 ++++
 2 files changed, 21 insertions(+), 11 deletions(-)

-- 
2.20.1