2016-10-10 06:57:52 +00:00
|
|
|
diff --git a/src/libjasper/jp2/jp2_cod.c b/src/libjasper/jp2/jp2_cod.c
|
2016-10-24 07:28:17 +00:00
|
|
|
index 7f3608a..c4ba73c 100644
|
2016-10-10 06:57:52 +00:00
|
|
|
--- a/src/libjasper/jp2/jp2_cod.c
|
|
|
|
+++ b/src/libjasper/jp2/jp2_cod.c
|
2016-10-24 07:28:17 +00:00
|
|
|
@@ -248,7 +248,7 @@ jp2_box_t *jp2_box_get(jas_stream_t *in)
|
2009-10-26 16:27:35 +00:00
|
|
|
box = 0;
|
|
|
|
tmpstream = 0;
|
|
|
|
|
|
|
|
- if (!(box = jas_malloc(sizeof(jp2_box_t)))) {
|
|
|
|
+ if (!(box = jas_calloc(1, sizeof(jp2_box_t)))) {
|
|
|
|
goto error;
|
|
|
|
}
|
2016-10-10 06:57:52 +00:00
|
|
|
|