[vlc-commits] Fix check for plugin table size
Cheng Sun
git at videolan.org
Tue Jan 1 16:13:20 CET 2013
npapi-vlc | branch: master | Cheng Sun <chengsun9 at gmail.com> | Sun Dec 30 20:51:52 2012 +0000| [9832877ec339adb7dcafc6f299c12fffbeff5f77] | committer: Jean-Baptiste Kempf
Fix check for plugin table size
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=9832877ec339adb7dcafc6f299c12fffbeff5f77
---
npapi/support/npunix.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/npapi/support/npunix.cpp b/npapi/support/npunix.cpp
index 0f4baaf..1f3f778 100644
--- a/npapi/support/npunix.cpp
+++ b/npapi/support/npunix.cpp
@@ -847,7 +847,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable, NPPluginFuncs* pluginFuncs)
err = NPERR_INCOMPATIBLE_VERSION_ERROR;
if (nsTable->size < ((char *)&nsTable->posturlnotify - (char *)nsTable))
err = NPERR_INVALID_FUNCTABLE_ERROR;
- if (pluginFuncs->size < sizeof(NPPluginFuncs))
+ if (pluginFuncs->size < (char *)&pluginFuncs->setvalue - (char *)pluginFuncs)
err = NPERR_INVALID_FUNCTABLE_ERROR;
}
More information about the vlc-commits
mailing list