qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* nbd: bitmap_to_extents() calls nbd_extent_array_add() without checking return value: coverity false positive?
@ 2020-11-06 17:22 Peter Maydell
  2020-11-06 20:35 ` Eric Blake
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Maydell @ 2020-11-06 17:22 UTC (permalink / raw)
  To: QEMU Developers

Hi; Coverity's "you usually check the return value of this function
but you didn't do that here" heuristic has fired on the code in
nbd/server.c:bitmap_to_extents() -- the function nbd_extent_array_add()
is called five times in server.c, and the return value is checked
in four of those, but not in the final call at the end of
bitmap_to_extents(). (CID 1436125.)

Is this a false positive, or should the caller be handling an
error here ?

thanks
-- PMM


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

end of thread, other threads:[~2020-11-10  7:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-06 17:22 nbd: bitmap_to_extents() calls nbd_extent_array_add() without checking return value: coverity false positive? Peter Maydell
2020-11-06 20:35 ` Eric Blake
2020-11-06 22:53   ` Peter Maydell
2020-11-09  7:17     ` Vladimir Sementsov-Ogievskiy
2020-11-09 15:22       ` Eric Blake
2020-11-10  7:29         ` Vladimir Sementsov-Ogievskiy

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).