diff options
author | Stefan Weil via | 2022-11-26 16:25:07 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2022-11-27 19:36:17 +0100 |
commit | ac149498215809bfb5c0ddce1953519fbfda5004 (patch) | |
tree | 713ff1144e702ba0059a7e81d6a586d429bd4646 /qapi/char.json | |
parent | MAINTAINERS: Add subprojects/libvhost-user to section "vhost" (diff) | |
download | qemu-ac149498215809bfb5c0ddce1953519fbfda5004.tar.gz qemu-ac149498215809bfb5c0ddce1953519fbfda5004.tar.xz qemu-ac149498215809bfb5c0ddce1953519fbfda5004.zip |
Add G_GNUC_PRINTF to function qemu_set_info_str and fix related issues
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>
Diffstat (limited to 'qapi/char.json')
0 files changed, 0 insertions, 0 deletions