summaryrefslogtreecommitdiffstats
path: root/hivex/hivex.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-11-04 11:33:29 +0000
committerRichard Jones <rjones@redhat.com>2010-02-19 14:47:38 +0000
commit175dc781fe471b7d08e8f05be1a2414b7e39ac52 (patch)
tree46f86667286e2f2756cf1f257e76604f06538f18 /hivex/hivex.c
parent72492c644609cdca0f71d42e5722351394b37ba8 (diff)
downloadhivex-175dc781fe471b7d08e8f05be1a2414b7e39ac52.tar.gz
hivex-175dc781fe471b7d08e8f05be1a2414b7e39ac52.tar.xz
hivex-175dc781fe471b7d08e8f05be1a2414b7e39ac52.zip
hivex: Check unchecked calloc (Jim Meyering).
Diffstat (limited to 'hivex/hivex.c')
-rw-r--r--hivex/hivex.c2
1 files changed, 2 insertions, 0 deletions
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. */