Commit b92f0136 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

dvdnav: Fix use after free

Using an unsigned value makes it impossible to detect errors, which
leads to reading from a freed buffer
parent 395db15f
......@@ -404,7 +404,7 @@ bailout:
static int StreamProbeDVD( stream_t *s )
{
/* first sector should be filled with zeros */
size_t i_peek;
ssize_t i_peek;
const uint8_t *p_peek;
i_peek = stream_Peek( s, &p_peek, 2048 );
if( i_peek < 512 ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment