Re: [PATCH v2 07/13] contrib/elf2dmp: Ensure segment fits in file

2024-03-05 Thread Peter Maydell
On Tue, 5 Mar 2024 at 07:36, Akihiko Odaki wrote: > > This makes elf2dmp more robust against corrupted inputs. > > Signed-off-by: Akihiko Odaki > --- > contrib/elf2dmp/addrspace.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Peter Maydell Though I'm not sure

[PATCH v2 07/13] contrib/elf2dmp: Ensure segment fits in file

2024-03-04 Thread Akihiko Odaki
This makes elf2dmp more robust against corrupted inputs. Signed-off-by: Akihiko Odaki --- contrib/elf2dmp/addrspace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/elf2dmp/addrspace.c b/contrib/elf2dmp/addrspace.c index e01860d15b07..81295a11534a 100644 ---