forked from mirror/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
With the G_GNUC_PRINTF function attribute the compiler detects
two potential insecure format strings:
../../../net/stream.c:248:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
qemu_set_info_str(&s->nc, uri);
^~~
../../../net/stream.c:322:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
qemu_set_info_str(&s->nc, uri);
^~~
There are also two other warnings:
../../../net/socket.c:182:35: warning: zero-length gnu_printf format string [-Wformat-zero-length]
182 | qemu_set_info_str(&s->nc, "");
| ^~
../../../net/stream.c:170:35: warning: zero-length gnu_printf format string [-Wformat-zero-length]
170 | qemu_set_info_str(&s->nc, "");
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20221126152507.283271-7-sw@weilnetz.de>
|
3 years ago | |
|---|---|---|
| .. | ||
| announce.h | 6 years ago | |
| can_emu.h | 5 years ago | |
| can_host.h | 5 years ago | |
| checksum.h | 5 years ago | |
| eth.h | 4 years ago | |
| filter.h | 5 years ago | |
| net.h | 3 years ago | |
| queue.h | 5 years ago | |
| slirp.h | 7 years ago | |
| tap.h | 6 years ago | |
| vhost-user.h | 9 years ago | |
| vhost-vdpa.h | 4 years ago | |
| vhost_net.h | 3 years ago | |