diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-09-13 09:07:12 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-09-13 09:07:12 -0400 |
commit | 20c4b0169493dae7624632dbca49758812138aeb (patch) | |
tree | ee4c6ee7fbc6f84f361415b1f34ca35a5cbbc12e /changes | |
parent | 4b182dfc237ba4457b654a0dbc124f721024dab2 (diff) | |
download | tor-20c4b0169493dae7624632dbca49758812138aeb.tar.gz tor-20c4b0169493dae7624632dbca49758812138aeb.zip |
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!
Diffstat (limited to 'changes')
-rw-r--r-- | changes/bug20081 | 5 |
1 files changed, 5 insertions, 0 deletions
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. |