LZMA coder causes crash when the sandbox is enabled
While doing the measurements for Sponsor 4 I noticed that Tor instances running as relays or authorities would sometimes crash when the sandbox is enabled.
This is due to the MALLOC_MP_LIM
value in sandbox.c
, which is currently set to 16 MB, being too low. We limit our LZMA coder to only use 16 MB, but the coder allocates some additional data other than its internal buffer, which leads to the crash.