[libdvdnav-devel] [PATCH 21/33] Use calloc as a safety measure since ifoRead functions populate parts of the data independently
beandog at gentoo.org
beandog at gentoo.org
Thu Jan 15 21:45:33 CET 2015
From: Steve Dibb <steve.dibb at gmail.com>
---
src/ifo_read.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ifo_read.c b/src/ifo_read.c
index 6b1a0cf..38edbb9 100644
--- a/src/ifo_read.c
+++ b/src/ifo_read.c
@@ -699,7 +699,7 @@ static int ifoRead_VTS(ifo_handle_t *ifofile) {
vtsi_mat_t *vtsi_mat;
int i;
- vtsi_mat = malloc(sizeof(vtsi_mat_t));
+ vtsi_mat = calloc(1, sizeof(vtsi_mat_t));
if(!vtsi_mat)
return 0;
--
2.0.4
More information about the libdvdnav-devel
mailing list