]> git.sesse.net Git - vlc/commit
hds: fix memory leak and buffer probing
authorTristan Matthews <le.businessman@gmail.com>
Fri, 1 Aug 2014 05:24:19 +0000 (01:24 -0400)
committerTristan Matthews <le.businessman@gmail.com>
Fri, 1 Aug 2014 14:17:02 +0000 (10:17 -0400)
commitcc64d3fc9295a14d791250c54a6be8ad3847cfbd
tree7c12f5d4319a9796dc59d799f8ceb639afdf6290
parentcd6820b850abb999808eb9c5edb93d9952c14474
hds: fix memory leak and buffer probing

Only 200 bytes are peeked but FromCharset was being called with 512.
The char * returned by FromCharset was not being freed, and
strstr was being called on a buffer that was not NULL terminated
(in the non utf-8 case).
modules/stream_filter/hds/hds.c