vlc | branch: master | Thomas Guillem <tho...@gllm.fr> | Wed May 9 17:27:03 2018 +0200| [4ef28fc0df5419d3dc59b6d91fe9498ce1a1d900] | committer: Thomas Guillem
vout: android: fix possible buffer underwrite with spus > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ef28fc0df5419d3dc59b6d91fe9498ce1a1d900 --- modules/video_output/android/display.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/video_output/android/display.c b/modules/video_output/android/display.c index e779f9e939..97ebf5d479 100644 --- a/modules/video_output/android/display.c +++ b/modules/video_output/android/display.c @@ -823,6 +823,10 @@ static void SubtitleRegionToBounds(subpicture_t *subpicture, new_bounds.left = r->i_x; new_bounds.top = r->i_y; + if (new_bounds.left < 0) + new_bounds.left = 0; + if (new_bounds.top < 0) + new_bounds.top = 0; new_bounds.right = r->fmt.i_visible_width + r->i_x; new_bounds.bottom = r->fmt.i_visible_height + r->i_y; if (r == &subpicture->p_region[0]) _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits