Skip to content

elf2dmp: Fix minor Coverity nits

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2elf2dmp: Check curl_easy_setopt() return valuecontrib/elf2dmp/download.c+10 -121 reply
2/2elf2dmp: Fail cleanly if PDB file specifies zero block_sizecontrib/elf2dmp/pdb.c+4 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPeter MaydellViktor Prutyanov
1/2Inspired-by T-b R-b T-b
2/2R-b T-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

This is a respin of Peter Maydell series, with slightly different logic on the first patch. Quoting v1 cover [*]:

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.

Viktor Prutyanov tested the patch but didn't provided a formal Tested-by tag, so I haven't included it in the patches.

[*] https://lore.kernel.org/qemu-devel/[email protected]/

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

 contrib/elf2dmp/download.c | 22 ++++++++++------------
 contrib/elf2dmp/pdb.c      |  4 ++++
 2 files changed, 14 insertions(+), 12 deletions(-)
Signature · 1 line
2.31.1