public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH v2 0/2] util: Fix some problems in write_remainder()
@ 2024-09-17  6:45 David Gibson
  2024-09-17  6:45 ` [PATCH v2 1/2] util: Add helper to write() all of a buffer David Gibson
  2024-09-17  6:45 ` [PATCH v2 2/2] util: Remove possible quadratic behaviour from write_remainder() David Gibson
  0 siblings, 2 replies; 7+ messages in thread
From: David Gibson @ 2024-09-17  6:45 UTC (permalink / raw)
  To: passt-dev, Stefano Brivio; +Cc: Markus Armbruster, David Gibson

With Markus Armbruster's help I re-examined the Coverity warning we've
had in this function for a while.  While I still don't understand some
steps in the report it's giving, I did spot some real problems in the
vicinity.  It turns out fixing those also fixes the Coverity warning,
so here we go.

David Gibson (2):
  util: Add helper to write() all of a buffer
  util: Remove possible quadratic behaviour from write_remainder()

 pcap.c |  3 +--
 util.c | 45 ++++++++++++++++++++++++++++++++++++---------
 util.h |  1 +
 3 files changed, 38 insertions(+), 11 deletions(-)

-- 
2.46.0


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

end of thread, other threads:[~2024-09-18 10:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-17  6:45 [PATCH v2 0/2] util: Fix some problems in write_remainder() David Gibson
2024-09-17  6:45 ` [PATCH v2 1/2] util: Add helper to write() all of a buffer David Gibson
2024-09-18  6:05   ` Markus Armbruster
2024-09-18 10:22     ` David Gibson
2024-09-17  6:45 ` [PATCH v2 2/2] util: Remove possible quadratic behaviour from write_remainder() David Gibson
2024-09-18  6:20   ` Markus Armbruster
2024-09-18 10:27     ` David Gibson

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

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 IMAP folder(s).