mfbt/double-conversion/use-StandardInteger.patch

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 diff --git a/mfbt/double-conversion/utils.h b/mfbt/double-conversion/utils.h
     2 index cd3e330..bdc7d4b 100644
     3 --- a/mfbt/double-conversion/utils.h
     4 +++ b/mfbt/double-conversion/utils.h
     5 @@ -74,23 +74,7 @@
     6  #endif
     9 -#if defined(_WIN32) && !defined(__MINGW32__)
    10 -
    11 -typedef signed char int8_t;
    12 -typedef unsigned char uint8_t;
    13 -typedef short int16_t;  // NOLINT
    14 -typedef unsigned short uint16_t;  // NOLINT
    15 -typedef int int32_t;
    16 -typedef unsigned int uint32_t;
    17 -typedef __int64 int64_t;
    18 -typedef unsigned __int64 uint64_t;
    19 -// intptr_t and friends are defined in crtdefs.h through stdio.h.
    20 -
    21 -#else
    22 -
    23 -#include <stdint.h>
    24 -
    25 -#endif
    26 +#include <stdint.h>
    28  // The following macro works on both 32 and 64-bit platforms.
    29  // Usage: instead of writing 0x1234567890123456

mercurial