tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

prevent-use-of-evsig.patch (692B)


      1 diff --git a/ipc/chromium/src/third_party/libevent/signal.c b/ipc/chromium/src/third_party/libevent/signal.c
      2 index 3f46295024e57..1eec621b48c6c 100644
      3 --- a/ipc/chromium/src/third_party/libevent/signal.c
      4 +++ b/ipc/chromium/src/third_party/libevent/signal.c
      5 @@ -64,6 +64,8 @@
      6 #include "evmap-internal.h"
      7 #include "evthread-internal.h"
      8 
      9 +#include "mozilla/Assertions.h"
     10 +
     11 /*
     12   signal.c
     13 
     14 @@ -280,6 +282,8 @@ evsig_add(struct event_base *base, evutil_socket_t evsignal, short old, short ev
     15 	struct evsig_info *sig = &base->sig;
     16 	(void)p;
     17 
     18 +	MOZ_CRASH("Don't use this; see bug 1616462");
     19 +
     20 	EVUTIL_ASSERT(evsignal >= 0 && evsignal < NSIG);
     21 
     22 	/* catch signals if they happen quickly */