Commit 546da072 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ogg: fix integer overflow

parent 33f3309f
...@@ -864,8 +864,8 @@ int64_t oggseek_read_page( demux_t *p_demux ) ...@@ -864,8 +864,8 @@ int64_t oggseek_read_page( demux_t *p_demux )
demux_sys_t *p_ogg = p_demux->p_sys ; demux_sys_t *p_ogg = p_demux->p_sys ;
uint8_t header[PAGE_HEADER_BYTES+255]; uint8_t header[PAGE_HEADER_BYTES+255];
int i_nsegs; int i_nsegs;
int i_in_pos;
int i; int i;
int64_t i_in_pos;
int64_t i_result; int64_t i_result;
int i_page_size; int i_page_size;
char *buf; char *buf;
...@@ -919,8 +919,8 @@ int64_t oggseek_read_page( demux_t *p_demux ) ...@@ -919,8 +919,8 @@ int64_t oggseek_read_page( demux_t *p_demux )
if ( ogg_sync_pageout( &p_ogg->oy, &p_ogg->current_page ) != 1 ) if ( ogg_sync_pageout( &p_ogg->oy, &p_ogg->current_page ) != 1 )
{ {
msg_Err( p_demux , "Got invalid packet, read %"PRId64" of %i: %s",i_result,i_page_size, msg_Err( p_demux , "Got invalid packet, read %"PRId64" of %i: %s %"PRId64,
buf ); i_result, i_page_size, buf, i_in_pos );
return 0; return 0;
} }
......
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