npapi-vlc | branch: master | Cheng Sun <chengs...@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 <j...@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; } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org http://mailman.videolan.org/listinfo/vlc-commits