mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Make preferred_chunk_size avoid overflow, handle big inputs better
Also, add tests for the function. Closes 20081; bugfix on 0.2.0.16-alpha. This is a Guido Vranken issue. Thanks, Guido!
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
o Minor bugfixes (allocation):
|
||||
- Change how we allocate memory for large chunks on buffers, to avoid
|
||||
a (currently impossible) integer overflow, and to waste less space
|
||||
when allocating unusually large chunks. Fixes bug 20081; bugfix on
|
||||
0.2.0.16-alpha. Issue identified by Guido Vranken.
|
||||
Reference in New Issue
Block a user