aboutsummaryrefslogtreecommitdiff
path: root/changes/fix-connection_printf_to_buf
diff options
context:
space:
mode:
authorRobert Ransom <rransom.8774@gmail.com>2011-06-15 21:16:44 -0700
committerNick Mathewson <nickm@torproject.org>2011-06-17 13:57:25 -0400
commit68cd0a9abeab126b3d954f060d922fd71cb945f7 (patch)
treea0aa3d928874849ed9a0fc2c3d0fffd8e558764d /changes/fix-connection_printf_to_buf
parent39480c797851c8c70914153b403a282a02e7aebb (diff)
downloadtor-68cd0a9abeab126b3d954f060d922fd71cb945f7.tar.gz
tor-68cd0a9abeab126b3d954f060d922fd71cb945f7.zip
Make connection_printf_to_buf's behaviour sane
Diffstat (limited to 'changes/fix-connection_printf_to_buf')
-rw-r--r--changes/fix-connection_printf_to_buf10
1 files changed, 10 insertions, 0 deletions
diff --git a/changes/fix-connection_printf_to_buf b/changes/fix-connection_printf_to_buf
new file mode 100644
index 0000000000..b6fa0921e1
--- /dev/null
+++ b/changes/fix-connection_printf_to_buf
@@ -0,0 +1,10 @@
+ * Code simplifications and refactoring:
+
+ - Make connection_printf_to_buf's behaviour sane. Its callers
+ expect it to emit a CRLF iff the format string ends with CRLF;
+ it actually emits a CRLF iff (a) the format string ends with
+ CRLF or (b) the resulting string is over 1023 characters long or
+ (c) the format string does not end with CRLF ''and'' the
+ resulting string is 1021 characters long or longer. Bugfix on
+ 0.1.1.9-alpha; fixes bug 3407.
+