]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Enlarge the buffer for a line in a bw file
authorSebastian Hahn <sebastian@torproject.org>
Wed, 7 Jan 2015 11:43:21 +0000 (12:43 +0100)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 7 Jan 2015 11:44:16 +0000 (12:44 +0100)
changes/bug14125 [new file with mode: 0644]
src/or/dirserv.c

diff --git a/changes/bug14125 b/changes/bug14125
new file mode 100644 (file)
index 0000000..fe6821a
--- /dev/null
@@ -0,0 +1,5 @@
+  o Minor bugfixes (dirauth):
+    - Enlarge the buffer to read bw-auth generated files to avoid an
+      issue when parsing the file in dirserv_read_measured_bandwidths().
+      Bugfix on 0.2.2.1-alpha, fixes #14125.
+
index 49fafafab2b7ef0aebe03dca03f9aef4a5869911..03b32cb2f39d7fc9377703ff6333f3f97a0f8f42 100644 (file)
@@ -2487,7 +2487,7 @@ int
 dirserv_read_measured_bandwidths(const char *from_file,
                                  smartlist_t *routerstatuses)
 {
-  char line[256];
+  char line[512];
   FILE *fp = tor_fopen_cloexec(from_file, "r");
   int applied_lines = 0;
   time_t file_time, now;