Add diagnostic log message for compression bombs.

This patch causes `tor_compress_is_compression_bomb()` to emit a
warning-level log message that lets us learn the potential ratio of the
input to output buffer sizes. Hopefully, this will give us a bit of a
better idea whether the compression bomb ratio needs some tuning.

See: tpo/core/tor#40739.
This commit is contained in:
Alexander Færøy
2023-09-13 16:13:28 +02:00
parent d6c89b1ae1
commit d9a6b37ab1
3 changed files with 13 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
o Minor features (debugging, compression):
- Log the input and output buffer sizes when we detect a potential
compression bomb. Diagnostic for ticket 40739.