[vlc-devel] commit: Protect against bad use after a vlc_dictionary_clear. ( Rémi Duraffort )

git version control git at videolan.org
Wed Oct 1 20:22:37 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Duraffort <ivoire at videolan.org> | Sun Sep 28 15:56:21 2008 +0200| [fbd67aeb6b4d7401cd8828ce77bfae59296ca21b] | committer: Jean-Baptiste Kempf 

Protect against bad use after a vlc_dictionary_clear.
(cherry picked from commit 2909c5c31dec8d3166633432d1dd2682531ca3d5)

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

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

 include/vlc_arrays.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h
index faf69d4..79e7722 100644
--- a/include/vlc_arrays.h
+++ b/include/vlc_arrays.h
@@ -442,6 +442,7 @@ static inline void vlc_dictionary_clear( vlc_dictionary_t * p_dict )
             }
         }
         free( p_dict->p_entries );
+        p_dict->p_entries = NULL;
     }
     p_dict->i_size = 0;
 }




More information about the vlc-devel mailing list