aboutsummaryrefslogtreecommitdiff
path: root/lackey
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2011-09-30 07:11:13 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2011-09-30 07:11:13 +0000
commit8a5c06b1e1347c873f6f0cda7c4bc1643ec05dca (patch)
tree710067b55b348899655a901577c892f92cf0eb41 /lackey
parentb578406c413ecb5340e8f86b9a6d747ebee21643 (diff)
downloadvalgrind-8a5c06b1e1347c873f6f0cda7c4bc1643ec05dca.tar.gz
Fix a couple of buffer overruns. n-i-bz.
(Philippe Waroquiers, philippe.waroquiers@skynet.be) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12074 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'lackey')
-rw-r--r--lackey/lk_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lackey/lk_main.c b/lackey/lk_main.c
index 1b2659c95..9e908b734 100644
--- a/lackey/lk_main.c
+++ b/lackey/lk_main.c
@@ -908,8 +908,8 @@ IRSB* lk_instrument ( VgCallbackClosure* closure,
static void lk_fini(Int exitcode)
{
- char percentify_buf[4]; /* Two digits, '%' and 0. */
- const int percentify_size = sizeof(percentify_buf);
+ char percentify_buf[5]; /* Two digits, '%' and 0. */
+ const int percentify_size = sizeof(percentify_buf) - 1;
const int percentify_decs = 0;
tl_assert(clo_fnname);