diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2020-07-01 20:18:01 +0200 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-07-13 11:46:35 +0200 |
| commit | 185951817dede3dfe4eb1c4c6d262607bee605ef (patch) | |
| tree | a5512035068cf08c2f731c44a63cf1da29e1dbf8 /scripts/analyse-9p-simpletrace.py | |
| parent | 480324ec8d76582fa1c367cc9a0fdb653d4ea96e (diff) | |
| download | focaccia-qemu-185951817dede3dfe4eb1c4c6d262607bee605ef.tar.gz focaccia-qemu-185951817dede3dfe4eb1c4c6d262607bee605ef.zip | |
ui: fix vc_chr_write call in text_console_do_init
In case the string doesn't fit into the buffer snprintf returns the size it would need, so len can be larger than the buffer. Fix this by simply using g_strdup_printf() instead of a static buffer. Reported-by: Wenxiang Qian <leonwxqian@gmail.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20200701181801.27935-1-kraxel@redhat.com
Diffstat (limited to 'scripts/analyse-9p-simpletrace.py')
0 files changed, 0 insertions, 0 deletions