qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] elf2dmp: Fix minor Coverity nits
@ 2021-09-01 14:39 Peter Maydell
  2021-09-01 14:39 ` [PATCH 1/2] elf2dmp: Check curl_easy_setopt() return value Peter Maydell
  2021-09-01 14:39 ` [PATCH 2/2] elf2dmp: Fail cleanly if PDB file specifies zero block_size Peter Maydell
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Maydell @ 2021-09-01 14:39 UTC (permalink / raw)
  To: qemu-devel; +Cc: Viktor Prutyanov

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-08 23:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-01 14:39 [PATCH 0/2] elf2dmp: Fix minor Coverity nits Peter Maydell
2021-09-01 14:39 ` [PATCH 1/2] elf2dmp: Check curl_easy_setopt() return value Peter Maydell
2021-09-01 15:25   ` Philippe Mathieu-Daudé
2021-09-08 21:43     ` Viktor Prutyanov
2021-09-08 23:25       ` Philippe Mathieu-Daudé
2021-09-01 14:39 ` [PATCH 2/2] elf2dmp: Fail cleanly if PDB file specifies zero block_size Peter Maydell
2021-09-08 21:28   ` Viktor Prutyanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).