Re: [PATCH v2] disas/cris: Pass buffer size to format_dec() to avoid overflow warning

2023-11-20 Thread Philippe Mathieu-Daudé
On 20/11/23 22:45, Paolo Bonzini wrote: From: Philippe Mathieu-Daudé Propagate the buffer size to format_dec() and use snprintf(). This should silence this UBSan -Wformat-overflow warning: "produced when using GCC 12.1.0:" In file included from /usr/include/stdio.h:906,

Re: [PATCH v2] disas/cris: Pass buffer size to format_dec() to avoid overflow warning

2023-11-20 Thread Akihiko Odaki
On 2023/11/21 6:45, Paolo Bonzini wrote: From: Philippe Mathieu-Daudé Propagate the buffer size to format_dec() and use snprintf(). This should silence this UBSan -Wformat-overflow warning: In file included from /usr/include/stdio.h:906, from include/qemu/osdep.h:114,

[PATCH v2] disas/cris: Pass buffer size to format_dec() to avoid overflow warning

2023-11-20 Thread Paolo Bonzini
From: Philippe Mathieu-Daudé Propagate the buffer size to format_dec() and use snprintf(). This should silence this UBSan -Wformat-overflow warning: In file included from /usr/include/stdio.h:906, from include/qemu/osdep.h:114, from ../disas/cris.c:21: