mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Fix security hole: zero out memory when allocated
This commit is contained in:
committed by
Vasily Khoruzhick
parent
4d7afd9b4f
commit
4bfee76ead
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user