qemu/target/s390x
Miroslav Rezanina e6a80232f4 s390x: Use strpadcpy for copying vm name
Using strncpy with length equal to the size of target array, GCC 11
reports following warning:

  warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation]

We can prevent this warning by using strpadcpy that copies string
up to specified length, zeroes target array after copied string
and does not raise warning when length is equal to target array
size (and ending '\0' is discarded).

Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <6f86915755219cf6a671788075da4809b57f7d7b.1610607906.git.mrezanin@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2021-01-21 11:19:45 +01:00
..
arch_dump.c
cc_helper.c target/s390x: Improve SUB LOGICAL WITH BORROW 2020-12-21 18:11:33 +01:00
cpu_features_def.h meson: rename .inc.h files to .h.inc 2020-08-21 06:18:35 -04:00
cpu_features_def.h.inc s390x/cpumodel: S390_FEAT_MISC_INSTRUCTION_EXT -> S390_FEAT_MISC_INSTRUCTION_EXT2 2020-10-02 13:52:49 +02:00
cpu_features.c s390x: pv: Fence additional unavailable SCLP facilities for PV guests 2020-12-21 18:11:32 +01:00
cpu_features.h s390x: pv: Fix diag318 PV fencing 2020-10-22 15:47:27 +02:00
cpu_models.c Further s390x updates: 2021-01-01 18:19:44 +00:00
cpu_models.h meson: convert target/s390x/gen-features.h 2020-08-21 06:30:17 -04:00
cpu-param.h
cpu-qom.h qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros 2020-09-18 14:12:32 -04:00
cpu.c Remove superfluous timer_del() calls 2021-01-08 15:13:38 +00:00
cpu.h s390/kvm: fix diag318 propagation and reset functionality 2020-11-18 16:57:48 +01:00
crypto_helper.c
diag.c
excp_helper.c s390x: do not use ram_size global 2020-12-10 12:15:09 -05:00
fpu_helper.c
gdbstub.c
gen-features.c s390x/tcg: Implement CIPHER MESSAGE WITH AUTHENTICATION (KMA) 2020-10-02 13:52:49 +02:00
helper.c target/s390x: Improve SUB LOGICAL WITH BORROW 2020-12-21 18:11:33 +01:00
helper.h s390x/tcg: Implement MONITOR CALL 2020-10-02 13:52:49 +02:00
insn-data.def s390x/tcg: Don't ignore content in r0 when not specified via "b" or "x" 2021-01-21 11:19:45 +01:00
insn-format.def
int_helper.c
internal.h target/s390x: Improve SUB LOGICAL WITH BORROW 2020-12-21 18:11:33 +01:00
interrupt.c
ioinst.c
kvm_s390x.h s390/kvm: fix diag318 propagation and reset functionality 2020-11-18 16:57:48 +01:00
kvm-stub.c s390/kvm: fix diag318 propagation and reset functionality 2020-11-18 16:57:48 +01:00
kvm.c s390x: Use strpadcpy for copying vm name 2021-01-21 11:19:45 +01:00
machine.c s390: guest support for diagnose 0x318 2020-10-02 13:52:49 +02:00
mem_helper.c s390x/tcg: Ignore register content if b1/b2 is zero when handling EXECUTE 2021-01-21 11:19:45 +01:00
meson.build target/s390x: fix meson.build issue 2020-08-21 11:55:13 -04:00
misc_helper.c s390x: Use strpadcpy for copying vm name 2021-01-21 11:19:45 +01:00
mmu_helper.c s390x: do not use ram_size global 2020-12-10 12:15:09 -05:00
s390-tod.h
sigp.c
tcg_s390x.h
tcg-stub.c
trace-events
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
translate_vx.c.inc meson: rename included C source files to .c.inc 2020-08-21 06:18:30 -04:00
translate.c s390x/tcg: Don't ignore content in r0 when not specified via "b" or "x" 2021-01-21 11:19:45 +01:00
vec_fpu_helper.c
vec_helper.c
vec_int_helper.c
vec_string_helper.c
vec.h