[vlc-devel] commit: mozilla plugin: fix potential buffer overlow. ( Rémi Duraffort )

git version control git at videolan.org
Tue Sep 15 21:33:06 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Sep 15 21:23:09 2009 +0200| [c49f925211b168459ac43d4113c3aedeb587f052] | committer: Rémi Duraffort 

mozilla plugin: fix potential buffer overlow.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c49f925211b168459ac43d4113c3aedeb587f052
---

 projects/mozilla/vlcplugin.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/projects/mozilla/vlcplugin.cpp b/projects/mozilla/vlcplugin.cpp
index 80ddbd5..d1e82e1 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -134,7 +134,7 @@ NPError VlcPlugin::init(int argc, char* const argn[], char* const argv[])
     const char *progid = NULL;
 
     /* parse plugin arguments */
-    for( int i = 0; i < argc ; i++ )
+    for( int i = 0; i < argc , ppsz_argc < 32; i++ )
     {
        /* fprintf(stderr, "argn=%s, argv=%s\n", argn[i], argv[i]); */
 




More information about the vlc-devel mailing list