qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 2/2] elf2dmp: check array bounds in pdb_get_file_size
Date: Mon, 2 Oct 2023 08:35:28 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1

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 <viktor@daynix.com>
---
  contrib/elf2dmp/pdb.c | 13 +++++++++----
  1 file changed, 9 insertions(+), 4 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]