From 87b3ba219259bcbaf3db2e74481d7413490db5a7 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: May 07 2015 20:40:21 +0000 Subject: Fix a self-test uninitialized memory bug Fix an uninitialized-array bug in one of the self-test tools, so that we don't pass an array that isn't NULL-terminated to a routine that expects a NULL-terminated array. --- diff --git a/tests/tools/pk7verify.c b/tests/tools/pk7verify.c index 9f32f68..906b4ca 100644 --- a/tests/tools/pk7verify.c +++ b/tests/tools/pk7verify.c @@ -96,6 +96,8 @@ main(int argc, char **argv) others[n_others++] = p; } } + roots[n_roots] = NULL; + others[n_others] = NULL; len = 0; data = NULL;