[gecko-mediaplayer] r523 committed - Updated version of Issue 184 fix

1 view
Skip to first unread message

codesite...@google.com

unread,
Jun 24, 2013, 8:36:52 AM6/24/13
to gecko-mediap...@googlegroups.com
Revision: 523
Author: kdekorte
Date: Mon Jun 24 05:36:39 2013
Log: Updated version of Issue 184 fix
http://code.google.com/p/gecko-mediaplayer/source/detail?r=523

Modified:
/trunk/src/np_entry.cpp

=======================================
--- /trunk/src/np_entry.cpp Sun Jun 23 12:02:02 2013
+++ /trunk/src/np_entry.cpp Mon Jun 24 05:36:39 2013
@@ -52,9 +52,7 @@
#endif

NPNetscapeFuncs NPNFuncs;
-#ifdef XP_UNIX
#include <stddef.h>
-#endif

#ifdef XP_WIN

@@ -123,8 +121,19 @@
// if (pFuncs->size < sizeof(NPNetscapeFuncs))
// Updated from Issue #184
// using model from
http://sources.debian.net/src/iceweasel/21.0-1/dom/plugins/test/testplugin/nptest.cpp#L672
- if (pFuncs->size < (offsetof(NPNetscapeFuncs, setexception) +
sizeof(void*)))
+ if (pFuncs->size < (offsetof(NPNetscapeFuncs, setexception) +
sizeof(void *)))
+ return NPERR_INVALID_FUNCTABLE_ERROR;
+
+#ifdef XP_UNIX
+#ifdef OIJ
+ if (pFuncs->size < (offsetof(NPPluginFuncs, javaClass) + sizeof(void
*)))
+ return NPERR_INVALID_FUNCTABLE_ERROR;
+#else
+ if (pFuncs->size < (offsetof(NPPluginFuncs, getvalue) + sizeof(void
*)))
return NPERR_INVALID_FUNCTABLE_ERROR;
+#endif
+#endif
+

NPNFuncs.size = pFuncs->size;
NPNFuncs.version = pFuncs->version;
Reply all
Reply to author
Forward
0 new messages