aboutsummaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-09-20 09:54:32 +0100
committerPeter Maydell <peter.maydell@linaro.org>2021-09-20 09:54:32 +0100
commitf015cbb546387e1132a15c29e6afacec4a6d2910 (patch)
treeaa0719bcec3dec6fab0b3aafd4388449ef54e98a /target
parente59a7e0ec5be2ef3a71b70ddeefc564af9c104c3 (diff)
downloadqemu-f015cbb546387e1132a15c29e6afacec4a6d2910.zip
qemu-f015cbb546387e1132a15c29e6afacec4a6d2910.tar.gz
qemu-f015cbb546387e1132a15c29e6afacec4a6d2910.tar.bz2
elf2dmp: Fail cleanly if PDB file specifies zero block_size
Coverity points out that if the PDB file we're trying to read has a header specifying a block_size of zero then we will end up trying to divide by zero in pdb_ds_read_file(). Check for this and fail cleanly instead. Fixes: Coverity CID 1458869 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Viktor Prutyanov <viktor.prutyanov@phystech.edu> Message-id: 20210910170656.366592-3-philmd@redhat.com Message-Id: <20210901143910.17112-3-peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'target')
0 files changed, 0 insertions, 0 deletions