Fix crash in LZMA module when the Sandbox is enabled.

This patch fixes a crash in our LZMA module where liblzma will allocate
slightly more data than it is allowed to by its limit, which leads to a
crash.

See: https://bugs.torproject.org/22751
This commit is contained in:
Alexander Færøy
2017-06-28 09:57:58 -04:00
parent 2cd49d9ea6
commit c239b2fc9c
2 changed files with 13 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
o Major bugfixes (compression):
- Fix crash in LZMA module, when the Sandbox is enabled, where
liblzma would allocate more than 16 MB of memory. We solve this
by bumping the mprotect() limit in the Sandbox module from 16 MB
to 20 MB. Fixes bug 22751; bugfix on 0.3.1.1-alpha.