From 175dc781fe471b7d08e8f05be1a2414b7e39ac52 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 4 Nov 2009 11:33:29 +0000 Subject: [PATCH] hivex: Check unchecked calloc (Jim Meyering). --- hivex/hivex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hivex/hivex.c b/hivex/hivex.c index b522ccf..4fa3b30 100644 --- a/hivex/hivex.c +++ b/hivex/hivex.c @@ -271,6 +271,8 @@ hivex_open (const char *filename, int flags) } h->bitmap = calloc (1 + h->size / 32, 1); + if (h->bitmap == NULL) + goto error; #if 0 /* Doesn't work. */ /* Header checksum. */ -- 1.8.3.1