[vlc-commits] aout: fix use after free

Hannes Domani git at videolan.org
Wed Oct 21 19:10:12 CEST 2015


vlc/vlc-2.2 | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu Aug 27 16:18:26 2015 +0200| [19a5c9c49e7b69b412afaad99bba86dab534ce37] | committer: Jean-Baptiste Kempf

aout: fix use after free

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit e0457843005da71bfa119f9c1e4bd023a4761fce)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=19a5c9c49e7b69b412afaad99bba86dab534ce37
---

 src/audio_output/dec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 2dfcff0..ef03894 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -92,6 +92,7 @@ int aout_DecNew( audio_output_t *p_aout,
         aout_OutputDelete (p_aout);
 error:
         aout_volume_Delete (owner->volume);
+        owner->volume = NULL;
         aout_OutputUnlock (p_aout);
         return -1;
     }
@@ -119,6 +120,7 @@ void aout_DecDelete (audio_output_t *aout)
         aout_OutputDelete (aout);
     }
     aout_volume_Delete (owner->volume);
+    owner->volume = NULL;
     aout_OutputUnlock (aout);
     var_Destroy (aout, "stereo-mode");
 }



More information about the vlc-commits mailing list