diff options
author | Eric Hameleers <alien@slackware.com> | 2013-11-21 21:16:04 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2013-11-21 21:16:04 +0000 |
commit | b9d375cb124da3d3e0b4dda2d9a948d3ae2bf4f9 (patch) | |
tree | bdf0430aef8ef518cfac5beffb80f695fc3d2fbb /gecko-mediaplayer | |
parent | 93eb2e22407fb5a13bcf09a2b527a583a4b7cacf (diff) | |
download | asb-b9d375cb124da3d3e0b4dda2d9a948d3ae2bf4f9.tar.gz asb-b9d375cb124da3d3e0b4dda2d9a948d3ae2bf4f9.tar.xz |
Initial revision
Diffstat (limited to 'gecko-mediaplayer')
-rw-r--r-- | gecko-mediaplayer/build/gecko-mediaplayer-1.0.8_functiontable.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gecko-mediaplayer/build/gecko-mediaplayer-1.0.8_functiontable.patch b/gecko-mediaplayer/build/gecko-mediaplayer-1.0.8_functiontable.patch new file mode 100644 index 00000000..e75dfe0c --- /dev/null +++ b/gecko-mediaplayer/build/gecko-mediaplayer-1.0.8_functiontable.patch @@ -0,0 +1,40 @@ +--- gecko-mediaplayer-1.0.8/src/np_entry.cpp.orig 2012-08-04 19:18:47.000000000 +0200 ++++ gecko-mediaplayer-1.0.8/src/np_entry.cpp 2013-11-21 22:09:51.445221214 +0100 +@@ -52,6 +52,7 @@ + #endif + + NPNetscapeFuncs NPNFuncs; ++#include <stddef.h> + + #ifdef XP_WIN + +@@ -117,9 +118,23 @@ + if (HIBYTE(pFuncs->version) > NP_VERSION_MAJOR) + return NPERR_INCOMPATIBLE_VERSION_ERROR; + +- if (pFuncs->size < sizeof(NPNetscapeFuncs)) ++ // 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 *))) + 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; + NPNFuncs.geturlnotify = pFuncs->geturlnotify; +@@ -198,3 +213,4 @@ + { + return NPERR_NO_ERROR; + } ++ |