Commit fe44129d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Consider too large width/height as invalid.

Idea taken from ebced314439f16e0d4dd8406ed0488f1677fa65f in master
parent 66ac2855
...@@ -297,7 +297,7 @@ vout_thread_t * vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt ) ...@@ -297,7 +297,7 @@ vout_thread_t * vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
char *psz_parser; char *psz_parser;
char *psz_name; char *psz_name;
if( i_width <= 0 || i_height <= 0 ) if( i_width <= 0 || i_height <= 0 || i_width > 8192 || i_height > 8192 )
return NULL; return NULL;
vlc_ureduce( &p_fmt->i_sar_num, &p_fmt->i_sar_den, vlc_ureduce( &p_fmt->i_sar_num, &p_fmt->i_sar_den,
......
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