]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
22839: fix check_heap_buffer buffer size in test-memwipe
authorTies Stuij <ties@stuij.se>
Sun, 13 Aug 2017 15:55:45 +0000 (17:55 +0200)
committerNick Mathewson <nickm@torproject.org>
Mon, 21 Aug 2017 19:03:54 +0000 (15:03 -0400)
src/test/test-memwipe.c

index 5d4fcec664ca223d77c6cc5b400011f12191a0d4..2cb4215b6179ffa4cac1d204e99cdd33948e77a6 100644 (file)
@@ -76,7 +76,7 @@ static unsigned
 check_a_buffer(void)
 {
   unsigned int i;
-  volatile char buf[1024];
+  volatile char buf[BUF_LEN];
   unsigned sum = 0;
 
   /* See if this buffer has the string in it.