aboutsummaryrefslogtreecommitdiff
path: root/linux-user/m68k/signal.c
diff options
context:
space:
mode:
authorFrancisco Iglesias <frasse.iglesias@gmail.com>2018-05-31 14:50:52 +0100
committerPeter Maydell <peter.maydell@linaro.org>2018-05-31 14:50:52 +0100
commita13b6d8eeca5cb786e934ad73f8b3b7e01c20121 (patch)
tree5f53d3a8b468c0efdb5ef8c2099591f9a4684daa /linux-user/m68k/signal.c
parent7e3ef27c7c1ccbac589ad0a67c40b5df57e2af71 (diff)
downloadqemu-a13b6d8eeca5cb786e934ad73f8b3b7e01c20121.zip
qemu-a13b6d8eeca5cb786e934ad73f8b3b7e01c20121.tar.gz
qemu-a13b6d8eeca5cb786e934ad73f8b3b7e01c20121.tar.bz2
xlnx-zdma: Correct mem leaks and memset to zero on desc unaligned errors
Coverity found that the string return by 'object_get_canonical_path' was not being freed at two locations in the model (CID 1391294 and CID 1391293) and also that a memset was being called with a value greater than the max of a byte on the second argument (CID 1391286). This patch corrects this by adding the freeing of the strings and also changing to memset to zero instead on descriptor unaligned errors. Signed-off-by: Francisco Iglesias <frasse.iglesias@gmail.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180528184859.3530-1-frasse.iglesias@gmail.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user/m68k/signal.c')
0 files changed, 0 insertions, 0 deletions