[PULL 0/1] Hexagon (disas/hexagon) fix memory leak for early exit

Taylor Simpson posted 1 patch 2 years, 8 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1628824050-15249-1-git-send-email-tsimpson@quicinc.com
disas/hexagon.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
[PULL 0/1] Hexagon (disas/hexagon) fix memory leak for early exit
Posted by Taylor Simpson 2 years, 8 months ago
The following changes since commit 703e8cd6189cf699c8d5c094bc68b5f3afa6ad71:

  Update version for v6.1.0-rc3 release (2021-08-10 19:08:09 +0100)

are available in the git repository at:

  https://github.com/quic/qemu tags/pull-hex-20210812

for you to fetch changes up to a7686d5d8528469b596e98eff098a5d3f8328fb3:

  Hexagon (disas/hexagon.c) fix memory leak for early exit cases (2021-08-12 09:06:05 -0500)

----------------------------------------------------------------

Don't allocate the string until error conditions have been checked

Fixes: a00cfed0e ("Hexagon (disas) disassembler")
Eliminate Coverity CID 1460121 (Resource leak)

----------------------------------------------------------------
Taylor Simpson (1):
      Hexagon (disas/hexagon.c) fix memory leak for early exit cases

 disas/hexagon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Re: [PULL 0/1] Hexagon (disas/hexagon) fix memory leak for early exit
Posted by Peter Maydell 2 years, 8 months ago
On Fri, 13 Aug 2021 at 04:07, Taylor Simpson <tsimpson@quicinc.com> wrote:
>
> The following changes since commit 703e8cd6189cf699c8d5c094bc68b5f3afa6ad71:
>
>   Update version for v6.1.0-rc3 release (2021-08-10 19:08:09 +0100)
>
> are available in the git repository at:
>
>   https://github.com/quic/qemu tags/pull-hex-20210812
>
> for you to fetch changes up to a7686d5d8528469b596e98eff098a5d3f8328fb3:
>
>   Hexagon (disas/hexagon.c) fix memory leak for early exit cases (2021-08-12 09:06:05 -0500)
>
> ----------------------------------------------------------------
>
> Don't allocate the string until error conditions have been checked
>
> Fixes: a00cfed0e ("Hexagon (disas) disassembler")
> Eliminate Coverity CID 1460121 (Resource leak)


I'll put this on my list to apply if we have an rc4, but I don't
think this bug is major enough to justify an rc4 if nothing
else means we need one.

thanks
-- PMM

RE: [PULL 0/1] Hexagon (disas/hexagon) fix memory leak for early exit
Posted by Taylor Simpson 2 years, 8 months ago
> -----Original Message-----
> From: Peter Maydell <peter.maydell@linaro.org>
> Sent: Friday, August 13, 2021 3:21 AM
> To: Taylor Simpson <tsimpson@quicinc.com>
> Cc: QEMU Developers <qemu-devel@nongnu.org>; Richard Henderson
> <richard.henderson@linaro.org>; Philippe Mathieu-Daudé
> <f4bug@amsat.org>
> Subject: Re: [PULL 0/1] Hexagon (disas/hexagon) fix memory leak for early
> exit
>  
> 
> I'll put this on my list to apply if we have an rc4, but I don't think this bug is
> major enough to justify an rc4 if nothing else means we need one.


Agreed.  Thanks Peter!

Taylor
Re: [PULL 0/1] Hexagon (disas/hexagon) fix memory leak for early exit
Posted by Peter Maydell 2 years, 8 months ago
On Fri, 13 Aug 2021 at 04:07, Taylor Simpson <tsimpson@quicinc.com> wrote:
>
> The following changes since commit 703e8cd6189cf699c8d5c094bc68b5f3afa6ad71:
>
>   Update version for v6.1.0-rc3 release (2021-08-10 19:08:09 +0100)
>
> are available in the git repository at:
>
>   https://github.com/quic/qemu tags/pull-hex-20210812
>
> for you to fetch changes up to a7686d5d8528469b596e98eff098a5d3f8328fb3:
>
>   Hexagon (disas/hexagon.c) fix memory leak for early exit cases (2021-08-12 09:06:05 -0500)
>
> ----------------------------------------------------------------
>
> Don't allocate the string until error conditions have been checked
>
> Fixes: a00cfed0e ("Hexagon (disas) disassembler")
> Eliminate Coverity CID 1460121 (Resource leak)
>
> ----------------------------------------------------------------
> Taylor Simpson (1):
>       Hexagon (disas/hexagon.c) fix memory leak for early exit cases


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/6.1
for any user-visible changes.

-- PMM