From: Jim Meyering <jim@meyering.net>
To: qemu-devel@nongnu.org
Cc: Jim Meyering <meyering@redhat.com>
Subject: [Qemu-devel] [PATCHv3 00/20] strncpy: best avoided
Date: Thu, 4 Oct 2012 13:09:43 +0200 [thread overview]
Message-ID: <1349349003-15672-1-git-send-email-jim@meyering.net> (raw)
From: Jim Meyering <meyering@redhat.com>
I included a quick classification of these change sets for the original series,
(see https://lists.gnu.org/archive/html/qemu-devel/2012-05/msg01151.html)
rebased in late May but perhaps the release-related timing was off.
I've rebased one last time to prepare this v3 series.
Other than the rebase, which ended up obviating 1 or 2 commits,
there have has been no change since v2.
Jim Meyering (20):
scsi,pci,qdev,isa-bus,sysbus: don't let *_get_fw_dev_path return NULL
sparc: use g_strdup in place of unchecked strdup
block: avoid buffer overrun by using pstrcpy, not strncpy
sheepdog: avoid a few buffer overruns
vmdk: relative_path: use pstrcpy in place of strncpy
hw/9pfs: avoid buffer overrun
lm32: avoid buffer overrun
os-posix: avoid buffer overrun
ppc: avoid buffer overrun: use pstrcpy, not strncpy
linux-user: remove two unchecked uses of strdup
ui/vnc: simplify and avoid strncpy
bt: replace fragile snprintf use and unwarranted strncpy
virtio-9p: avoid unwarranted uses of strncpy
vscsi: avoid unwarranted strncpy
qemu-ga: prefer pstrcpy: consistently NUL-terminate ifreq.ifr_name
libcacard/vcard_emul_nss: use pstrcpy in place of strncpy
acpi: remove strzcpy (strncpy-identical) function; just use strncpy
qcow2: mark this file's sole strncpy use as justified
hw/r2d: add comment: this strncpy use is ok
doc: update HACKING wrt strncpy/pstrcpy
HACKING | 9 +++++----
block.c | 5 +++--
block/qcow2.c | 1 +
block/sheepdog.c | 34 ++++++++++++++++++++++------------
block/vmdk.c | 3 +--
hw/9pfs/virtio-9p-posix-acl.c | 6 ++++--
hw/9pfs/virtio-9p-synth.c | 4 ++--
hw/9pfs/virtio-9p-xattr-user.c | 3 ++-
hw/9pfs/virtio-9p-xattr.c | 3 ++-
hw/acpi.c | 24 ++++++++----------------
hw/bt-hci.c | 7 ++-----
hw/ide/qdev.c | 2 +-
hw/isa-bus.c | 2 +-
hw/lm32_hwsetup.h | 2 +-
hw/pci.c | 2 +-
hw/qdev.c | 2 +-
hw/r2d.c | 2 ++
hw/scsi-bus.c | 8 ++------
hw/spapr_vscsi.c | 2 +-
hw/sysbus.c | 2 +-
libcacard/Makefile | 3 +++
libcacard/vcard_emul_nss.c | 3 +--
linux-user/elfload.c | 12 +++++++-----
os-posix.c | 3 +--
qga/commands-posix.c | 2 +-
target-ppc/kvm.c | 2 +-
target-sparc/cpu.c | 4 ++--
ui/vnc-auth-sasl.c | 4 +---
28 files changed, 80 insertions(+), 76 deletions(-)
--
1.8.0.rc0.18.gf84667d
next reply other threads:[~2012-10-04 11:10 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-04 11:09 Jim Meyering [this message]
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 01/20] scsi, pci, qdev, isa-bus, sysbus: don't let *_get_fw_dev_path return NULL Jim Meyering
2012-10-05 21:17 ` Anthony Liguori
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 02/20] sparc: use g_strdup in place of unchecked strdup Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 03/20] block: avoid buffer overrun by using pstrcpy, not strncpy Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 04/20] sheepdog: avoid a few buffer overruns Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 05/20] vmdk: relative_path: use pstrcpy in place of strncpy Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 06/20] hw/9pfs: avoid buffer overrun Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 07/20] lm32: " Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 08/20] os-posix: " Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 09/20] ppc: avoid buffer overrun: use pstrcpy, not strncpy Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 10/20] linux-user: remove two unchecked uses of strdup Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 11/20] ui/vnc: simplify and avoid strncpy Jim Meyering
2012-10-04 18:48 ` Peter Maydell
2012-10-04 18:56 ` Jim Meyering
2012-10-04 19:02 ` Peter Maydell
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 12/20] bt: replace fragile snprintf use and unwarranted strncpy Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 13/20] virtio-9p: avoid unwarranted uses of strncpy Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 14/20] vscsi: avoid unwarranted strncpy Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 15/20] qemu-ga: prefer pstrcpy: consistently NUL-terminate ifreq.ifr_name Jim Meyering
2012-10-04 11:09 ` [Qemu-devel] [PATCHv3 16/20] libcacard/vcard_emul_nss: use pstrcpy in place of strncpy Jim Meyering
2012-10-04 11:10 ` [Qemu-devel] [PATCHv3 17/20] acpi: remove strzcpy (strncpy-identical) function; just use strncpy Jim Meyering
2012-10-04 11:10 ` [Qemu-devel] [PATCHv3 18/20] qcow2: mark this file's sole strncpy use as justified Jim Meyering
2012-10-04 11:10 ` [Qemu-devel] [PATCHv3 19/20] hw/r2d: add comment: this strncpy use is ok Jim Meyering
2012-10-04 11:10 ` [Qemu-devel] [PATCHv3 20/20] doc: update HACKING wrt strncpy/pstrcpy Jim Meyering
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=1349349003-15672-1-git-send-email-jim@meyering.net \
--to=jim@meyering.net \
--cc=meyering@redhat.com \
--cc=qemu-devel@nongnu.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 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).