diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-06-20 12:26:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-06-20 12:26:57 -0400 |
commit | 9328bd524e38befe240fd729a9febb4dfe8b5be4 (patch) | |
tree | 93510123bf30cf23af636cb7f9c4a62b7e84970d /changes/bug22672 | |
parent | 945256188ab3a9b5842455f714d51e1871b0bf69 (diff) | |
download | tor-9328bd524e38befe240fd729a9febb4dfe8b5be4.tar.gz tor-9328bd524e38befe240fd729a9febb4dfe8b5be4.zip |
Enforce the rule that COMPRESS_OK means progress was made.
If COMPRESS_OK occurs but data is neither consumed nor generated,
treat it as a BUG and a COMPRESS_ERROR.
This change is meant to prevent infinite loops in the case where
we've made a mistake in one of our compression backends.
Closes ticket 22672.
Diffstat (limited to 'changes/bug22672')
-rw-r--r-- | changes/bug22672 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changes/bug22672 b/changes/bug22672 new file mode 100644 index 0000000000..ec6681149d --- /dev/null +++ b/changes/bug22672 @@ -0,0 +1,5 @@ + o Minor features (compression, defensive programming): + - Detect and break out of infinite loops in our compression code. + We don't think that any such loops exist now, but it's best to be + safe. Closes ticket 22672. + |