[SCM] gecko-mediaplayer/master: Fix function table check

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Mon Jun 17 19:33:32 UTC 2013


The following commit has been merged in the master branch:
commit 3161c06931e2414fd1633055e28757c7b6cb044a
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Mon Jun 17 21:11:26 2013 +0200

    Fix function table check

diff --git a/debian/patches/functable-check.patch b/debian/patches/functable-check.patch
new file mode 100644
index 0000000..a537c15
--- /dev/null
+++ b/debian/patches/functable-check.patch
@@ -0,0 +1,25 @@
+Description: Fix function table check
+ We only need to know if we have access to all the values we need. Everything
+ else is not necessary.
+Author: Sebastian Ramacher <sramacher at debian.org>
+Last-Update: 2013-06-10
+
+--- a/src/np_entry.cpp
++++ b/src/np_entry.cpp
+@@ -42,6 +42,7 @@
+ #include <npapi.h>
+ #include <npfunctions.h>
+ #include "npupp.h"
++#include <cstddef>
+ 
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
+@@ -117,7 +118,7 @@
+     if (HIBYTE(pFuncs->version) > NP_VERSION_MAJOR)
+         return NPERR_INCOMPATIBLE_VERSION_ERROR;
+ 
+-    if (pFuncs->size < sizeof(NPNetscapeFuncs))
++    if (pFuncs->size < offsetof(NPPluginFuncs, getvalue) + sizeof(NPP_GetValueProcPtr))
+         return NPERR_INVALID_FUNCTABLE_ERROR;
+ 
+     NPNFuncs.size = pFuncs->size;
diff --git a/debian/patches/series b/debian/patches/series
index 605d4d5..dfb722a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-nomozalloc.patch
+functable-check.patch

-- 
gecko-mediaplayer packaging



More information about the pkg-multimedia-commits mailing list