[vlc-commits] Fixed a potential infinite loop in CheckAPI() (egl).
Laurent Aimar
git at videolan.org
Thu Jun 2 19:15:32 CEST 2011
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Jun 2 19:08:39 2011 +0200| [abe86edd8236a5a3bb134a6b6647c5da2733bc27] | committer: Laurent Aimar
Fixed a potential infinite loop in CheckAPI() (egl).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=abe86edd8236a5a3bb134a6b6647c5da2733bc27
---
modules/video_output/egl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/egl.c b/modules/video_output/egl.c
index 881e122..23d5f25 100644
--- a/modules/video_output/egl.c
+++ b/modules/video_output/egl.c
@@ -80,6 +80,8 @@ static bool CheckAPI (EGLDisplay dpy, const char *api)
/* Cannot use strtok_r() on constant string... */
do
{
+ while (*apis == ' ')
+ apis++;
if (!strncmp (apis, api, apilen)
&& (memchr (" ", apis[apilen], 2) != NULL))
return true;
More information about the vlc-commits
mailing list