[vlc-devel] commit: mozilla plugin: fix potential buffer overlow. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Sep 15 23:55:41 CEST 2009
vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Tue Sep 15 21:23:09 2009 +0200| [6a23514203f0d4ae7a6c8aa6c58d234d6a31a17d] | committer: Rémi Duraffort
mozilla plugin: fix potential buffer overlow.
(cherry picked from commit c49f925211b168459ac43d4113c3aedeb587f052)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6a23514203f0d4ae7a6c8aa6c58d234d6a31a17d
---
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 199832c..6b86472 100644
--- a/projects/mozilla/vlcplugin.cpp
+++ b/projects/mozilla/vlcplugin.cpp
@@ -133,7 +133,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