summaryrefslogtreecommitdiff
path: root/src/test/test_util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-02-13 09:39:46 -0500
committerNick Mathewson <nickm@torproject.org>2017-02-14 16:38:47 -0500
commitc4f2faf3019f2c41f9c3b2b8a73b4fe41e881328 (patch)
treeddb5cd77c06a5dda60a8f7683bcd6b2ce506c601 /src/test/test_util.c
parent4a2afd5b33f02ed3e5eb591dd29537fa4f69399f (diff)
downloadtor-c4f2faf3019f2c41f9c3b2b8a73b4fe41e881328.tar.gz
tor-c4f2faf3019f2c41f9c3b2b8a73b4fe41e881328.zip
Don't atoi off the end of a buffer chunk.
Fixes bug 20894; bugfix on 0.2.0.16-alpha. We already applied a workaround for this as 20834, so no need to freak out (unless you didn't apply 20384 yet).
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r--src/test/test_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index fcda564569..dc01d1a94b 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -9,6 +9,7 @@
#define CONTROL_PRIVATE
#define UTIL_PRIVATE
#include "or.h"
+#include "buffers.h"
#include "config.h"
#include "control.h"
#include "test.h"