aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2012-03-27 14:04:15 +0200
committerSebastian Hahn <sebastian@torproject.org>2012-03-27 15:16:22 +0200
commit582f747049ae9595380fe06df8e6b26c735b50c1 (patch)
tree2dc5c41b04a6db4c8f6b511e93dd684096dc1b29 /src/test
parent4121e7f861732b43fa2c38e68147718a15848d45 (diff)
downloadtor-582f747049ae9595380fe06df8e6b26c735b50c1.tar.gz
tor-582f747049ae9595380fe06df8e6b26c735b50c1.zip
Provide large enough buffer in test_util_sscanf()
This was causing crashes during unit test runs, as stack smashing protections got triggered. Issue spotted by weasel
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c
index 0187187c0a..9da4cb7994 100644
--- a/src/test/test_util.c
+++ b/src/test/test_util.c
@@ -1376,7 +1376,7 @@ static void
test_util_sscanf(void)
{
unsigned u1, u2, u3;
- char s1[10], s2[10], s3[10], ch;
+ char s1[20], s2[10], s3[10], ch;
int r;
/* Simple tests (malformed patterns, literal matching, ...) */