From 20c4b0169493dae7624632dbca49758812138aeb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 13 Sep 2016 09:07:12 -0400 Subject: 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! --- changes/bug20081 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 changes/bug20081 (limited to 'changes') diff --git a/changes/bug20081 b/changes/bug20081 new file mode 100644 index 0000000000..a95161cdc3 --- /dev/null +++ b/changes/bug20081 @@ -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. -- cgit v1.2.3-54-g00ecf