vdpa: Add dummy receive callback
[qemu.git] / tests / qtest / fuzz-xlnx-dp-test.c
blob69eb6c0eb10441c48ad9d6d41f159f47758d1027
1 /*
2 * QTest fuzzer-generated testcase for xlnx-dp display device
4 * Copyright (c) 2021 Qiang Liu <cyruscyliu@gmail.com>
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
9 #include "qemu/osdep.h"
10 #include "libqos/libqtest.h"
13 * This used to trigger the out-of-bounds read in xlnx_dp_read
15 static void test_fuzz_xlnx_dp_0x3ac(void)
17 QTestState *s = qtest_init("-M xlnx-zcu102 -display none ");
18 qtest_readl(s, 0xfd4a03ac);
19 qtest_quit(s);
22 int main(int argc, char **argv)
24 const char *arch = qtest_get_arch();
26 g_test_init(&argc, &argv, NULL);
28 if (strcmp(arch, "aarch64") == 0) {
29 qtest_add_func("fuzz/test_fuzz_xlnx_dp/3ac", test_fuzz_xlnx_dp_0x3ac);
32 return g_test_run();