[vlc-commits] aout: fix use after free

Hannes Domani git at videolan.org
Wed Sep 9 14:05:27 CEST 2015


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

aout: fix use after free

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 cafaba6..9e356aa 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -96,6 +96,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);
         var_Destroy (p_aout, "stereo-mode");
         return -1;
@@ -124,6 +125,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