[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH for-3.1? 0/3] strcpy: fix stringop-truncation warnin
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH for-3.1? 0/3] strcpy: fix stringop-truncation warnings |
Date: |
Tue, 20 Nov 2018 19:27:50 +0400 |
Hi,
Some of those warnings have already been fixed, others have been
delayed as it could make sense to disable/ignoring the warning, or
write a custom strncpy() function.
In some cases where NUL-ending string is not mandatory (because the
string length is bound in some format or protocol), we can replace
strncpy() with qemu strpadcpy(), so that the destination string is
still NUL-ending in cases where the destination is larger than the
source string.
Some warnings can be shut up with assert() lines in some cases.
Marc-André Lureau (3):
sheepdog: fix stringop-truncation warning
migration: fix stringop-truncation warning
acpi: fix stringop-truncation warnings
block/sheepdog.c | 1 +
hw/acpi/aml-build.c | 6 ++++--
hw/acpi/core.c | 13 +++++++------
migration/global_state.c | 1 +
4 files changed, 13 insertions(+), 8 deletions(-)
--
2.19.1.708.g4ede3d42df
[Qemu-devel] [PATCH for-3.1? 3/3] acpi: fix stringop-truncation warnings, Marc-André Lureau, 2018/11/20