git.annexia.org
/
hivex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72492c6
)
hivex: Check unchecked calloc (Jim Meyering).
author
Richard Jones
<rjones@redhat.com>
Wed, 4 Nov 2009 11:33:29 +0000
(11:33 +0000)
committer
Richard Jones
<rjones@redhat.com>
Fri, 19 Feb 2010 14:47:38 +0000
(14:47 +0000)
hivex/hivex.c
patch
|
blob
|
history
diff --git
a/hivex/hivex.c
b/hivex/hivex.c
index
b522ccf
..
4fa3b30
100644
(file)
--- 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. */