xemu/tests
Philippe Mathieu-Daudé c4f8ce24de tests/unit: Replace g_memdup() by g_memdup2()
Per https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538

  The old API took the size of the memory to duplicate as a guint,
  whereas most memory functions take memory sizes as a gsize. This
  made it easy to accidentally pass a gsize to g_memdup(). For large
  values, that would lead to a silent truncation of the size from 64
  to 32 bits, and result in a heap area being returned which is
  significantly smaller than what the caller expects. This can likely
  be exploited in various modules to cause a heap buffer overflow.

Replace g_memdup() by the safer g_memdup2() wrapper.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210903174510.751630-24-philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2022-07-18 20:24:36 +02:00
..
avocado test/avocado/machine_aspeed.py: Add SDK tests 2022-07-14 16:24:38 +02:00
bench test/crypto: Add test suite for crypto akcipher 2022-05-26 11:41:54 +01:00
data tests/acpi: virt: update golden masters for VIOT 2022-06-09 19:32:49 -04:00
decode
docker vfio-user: build library 2022-06-15 16:42:33 +01:00
fp tests/fp: Do not build softfloat3 tests if TCG is disabled 2022-07-05 09:33:49 +02:00
guest-debug tests/guest-debug: better handle gdb crashes 2022-04-20 16:04:20 +01:00
image-fuzzer
include
keys
lcitool tests/docker: update debian-amd64 with lcitool 2022-06-01 15:47:23 +01:00
migration
multiboot
perf/block/qcow2
plugin
qapi-schema qapi-schema: test: add a unit test for parsing array alternates 2022-04-21 10:11:25 +02:00
qemu-iotests iotests/297: Have mypy ignore unused ignores 2022-07-12 13:55:24 +02:00
qtest qtest/machine-none: Add LoongArch support 2022-07-18 20:24:36 +02:00
rocker
tcg * fuzzing fixes (Alexander) 2022-07-12 14:12:15 +01:00
tsan
uefi-test-tools
unit tests/unit: Replace g_memdup() by g_memdup2() 2022-07-18 20:24:36 +02:00
vm tests/vm: Remove docker cross-compile test from CentOS VM 2022-07-18 20:24:36 +02:00
vmstate-static-checker-data
check-block.sh tests/qemu-iotests: Move the bash and sanitizer checks to meson.build 2022-04-20 09:46:54 +02:00
dbus-vmstate-daemon.sh
Makefile.include tests: install "qemu" namespace package into venv 2022-06-06 09:26:54 +02:00
meson.build meson: create have_vhost_* variables 2022-05-07 07:46:58 +02:00
requirements.txt tests: install "qemu" namespace package into venv 2022-06-06 09:26:54 +02:00
test-qht-par.c
vhost-user-bridge.c