[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:17:56 CEST 2008


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Sep 28 15:56:21 2008 +0200| [2909c5c31dec8d3166633432d1dd2682531ca3d5] | committer: Rémi Duraffort 

Protect against bad use after a vlc_dictionary_clear.

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

 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 a121000..35cc0ca 100644
--- a/include/vlc_arrays.h
+++ b/include/vlc_arrays.h
@@ -450,6 +450,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