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).
Showing
Please register or sign in to comment