All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: Anthony Perard <anthony.perard@citrix.com>, Wei Liu <wl@xen.org>
Subject: [PATCH 0/3] tools: address recently reported Coverity issues
Date: Thu, 18 Aug 2022 16:03:50 +0200	[thread overview]
Message-ID: <68e71e3b-19a7-e062-9ebe-2e6f6aae0549@suse.com> (raw)

Three of the four reported issues a pretty clear how to take care
of, which is done in this series. The 4th, CID 1509375, isn't as
obvious, mainly because I don't know enough about Coverity to be
able to tell whether adding a cast there might help; the issue
reported for xenbaked suggests it wouldn't. The alternative I can
see would be an arch-independent piece of inline assembly, hiding
the transformation from time_t to int from the analysis tool. But
I'm not convinced such would be liked. Nor am I sure the can be
fully arch-ignorant, as time_t potentially being a 64-bit type
might not be possible to match with an "r" constraint on all 32-
bit architectures. So maybe what's left is memcpy() from a
"time_t" variable to an "int" one ...

1: xenbaked: properly use time_t in dump_stats()
2: console/client: properly use time_t in get_pty_fd()
3: libxl: use time_t for qmp_synchronous_send()'s last parameter

Jan


             reply	other threads:[~2022-08-18 14:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-18 14:03 Jan Beulich [this message]
2022-08-18 14:05 ` [PATCH 1/3] xenbaked: properly use time_t in dump_stats() Jan Beulich
2022-08-18 16:34   ` Anthony PERARD
2022-08-19  5:56     ` Jan Beulich
2022-08-18 14:06 ` [PATCH 2/3] console/client: properly use time_t in get_pty_fd() Jan Beulich
2022-08-18 16:40   ` Anthony PERARD
2022-08-18 14:07 ` [PATCH 3/3] libxl: use time_t for qmp_synchronous_send()'s last parameter Jan Beulich
2022-08-18 14:20   ` Juergen Gross
2022-08-18 14:35     ` Jan Beulich
2022-08-18 16:14   ` Anthony PERARD
2022-08-19  7:59 ` [PATCH v2] xenbaked: properly use time_t in dump_stats() Jan Beulich
2022-08-19  8:27   ` Anthony PERARD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68e71e3b-19a7-e062-9ebe-2e6f6aae0549@suse.com \
    --to=jbeulich@suse.com \
    --cc=anthony.perard@citrix.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.