]> git.sesse.net Git - vlc/commit
fix crash with directory access
authorRafaël Carré <funman@videolan.org>
Sat, 19 Nov 2011 22:04:35 +0000 (17:04 -0500)
committerRafaël Carré <funman@videolan.org>
Sat, 19 Nov 2011 22:08:13 +0000 (17:08 -0500)
commit58ac662cc1f756c1fa9c9bd3315f91923739bd45
tree5d18ffcfb7f97608b74bb89c3de8d15b4dabf3c9
parent8a2ce299b33d99501e07dc9a6ace50f91b40a02e
fix crash with directory access

If a directory was not valid UTF-8, convert_xml_special_chars() would
return NULL, we'd have no title to give to our node, and we'd use
freed memory when adding the next node to the list.

Ensure we give valid UTF-8 to convert_xml_special_chars()
Also ensure we give a title to our node in any case
modules/access/directory.c