[tor-commits] [sandboxed-tor-browser/master] This is related to the XQueryExtension() hook, but it turns out that

yawning at torproject.org yawning at torproject.org
Wed Dec 7 03:21:20 UTC 2016


commit f27830a7f5af70c245f03e574d982ec49146d514
Author: Yawning Angel <yawning at schwanenlied.me>
Date:   Wed Dec 7 03:17:01 2016 +0000

    This is related to the XQueryExtension() hook, but it turns out that
    even if Firefox does the right thing, certain versions of cario will
    not.  This got merged into FF 50.1.0 upstream so can probably go away
    once ESR52 is the norm.
    
    See: https://bugzilla.mozilla.org/show_bug.cgi?id=1271100
---
 src/tbb_stub/tbb_stub.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/tbb_stub/tbb_stub.c b/src/tbb_stub/tbb_stub.c
index 7ef8b51..7d4236b 100644
--- a/src/tbb_stub/tbb_stub.c
+++ b/src/tbb_stub/tbb_stub.c
@@ -172,6 +172,11 @@ XQueryExtension(Display *display, _Xconst char *name, int *major, int *event, in
   return real_XQueryExtension(display, name, major, event, error);
 }
 
+Bool
+XShmQueryExtension(Display* display) {
+  (void)display;
+  return False;
+}
 
 /* There are rumors that PI futexes have scary race conditions, that enable
  * an exploit that is being sold by the forces of darkness.  On systems where



More information about the tor-commits mailing list