From 4bfee76eada7a107d39d8605ca6a2981df64142f Mon Sep 17 00:00:00 2001 From: Alan Davidson Date: Thu, 18 Aug 2016 17:16:05 -0400 Subject: [PATCH] Fix security hole: zero out memory when allocated --- libfprint/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/data.c b/libfprint/data.c index 3c138c3..70f020f 100644 --- a/libfprint/data.c +++ b/libfprint/data.c @@ -112,7 +112,7 @@ void fpi_print_data_item_free(struct fp_print_data_item *item) struct fp_print_data_item *fpi_print_data_item_new(size_t length) { - struct fp_print_data_item *item = g_malloc(sizeof(*item) + length); + struct fp_print_data_item *item = g_malloc0(sizeof(*item) + length); item->length = length; return item;