Re: [PATCH v4 14/19] contrib/elf2dmp: Use rol64() to decode

2024-03-07 Thread Philippe Mathieu-Daudé
On 7/3/24 11:20, Akihiko Odaki wrote: rol64() is roubust against too large shift values and fixes UBSan warnings. Signed-off-by: Akihiko Odaki Reviewed-by: Peter Maydell --- contrib/elf2dmp/main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) Reviewed-by: Philippe Mathieu-

[PATCH v4 14/19] contrib/elf2dmp: Use rol64() to decode

2024-03-07 Thread Akihiko Odaki
rol64() is roubust against too large shift values and fixes UBSan warnings. Signed-off-by: Akihiko Odaki Reviewed-by: Peter Maydell --- contrib/elf2dmp/main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/contrib/elf2dmp/main.c b/contrib/elf2dmp/main.c index 32dc8b