Re: [PATCH v2 2/2] elf2dmp: check array bounds in pdb_get_file_size

2023-10-01 Thread Philippe Mathieu-Daudé
On 1/10/23 01:53, Viktor Prutyanov wrote: Index in file_size array must be checked against num_files, because the entries we are looking for may be absent in the PDB. Fixes: Coverity CID 1521597 Signed-off-by: Viktor Prutyanov --- contrib/elf2dmp/pdb.c | 13 + 1 file changed, 9 i

[PATCH v2 2/2] elf2dmp: check array bounds in pdb_get_file_size

2023-09-30 Thread Viktor Prutyanov
Index in file_size array must be checked against num_files, because the entries we are looking for may be absent in the PDB. Fixes: Coverity CID 1521597 Signed-off-by: Viktor Prutyanov --- contrib/elf2dmp/pdb.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/con