[MPlayer-cvslog] r36572 - trunk/libvo/vo_xvmc.c
iive
subversion at mplayerhq.hu
Mon Jan 6 21:43:17 CET 2014
Author: iive
Date: Mon Jan 6 21:43:17 2014
New Revision: 36572
Log:
XvMC: Add check for invalid data_size in the shmem case.
Modified:
trunk/libvo/vo_xvmc.c
Modified: trunk/libvo/vo_xvmc.c
==============================================================================
--- trunk/libvo/vo_xvmc.c Mon Jan 6 21:11:56 2014 (r36571)
+++ trunk/libvo/vo_xvmc.c Mon Jan 6 21:43:17 2014 (r36572)
@@ -199,6 +199,8 @@ static int allocate_xvimage(int xvimage_
NULL, xvimage_width, xvimage_height, &Shminfo);
if (!xvimage)
goto noshmimage;
+ if (!xvimage->data_size)
+ goto shmgetfail;
Shminfo.shmid = shmget(IPC_PRIVATE, xvimage->data_size, IPC_CREAT | 0777);
if (Shminfo.shmid == -1)
More information about the MPlayer-cvslog
mailing list