projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2720a1a
)
[trunk] Ensure cblk->data pointer is correctly initialized (updates issue 391). Still...
author
Antonin Descampe
<antonin@gmail.com>
Mon, 29 Sep 2014 12:03:50 +0000
(12:03 +0000)
committer
Antonin Descampe
<antonin@gmail.com>
Mon, 29 Sep 2014 12:03:50 +0000
(12:03 +0000)
src/lib/openjp2/t2.c
patch
|
blob
|
history
diff --git
a/src/lib/openjp2/t2.c
b/src/lib/openjp2/t2.c
index ec603dc4f104f92335a0630e4aa42880e3b92db6..1bcb52ca4e5042f60e3bc8c80d138b13e47d365f 100644
(file)
--- a/
src/lib/openjp2/t2.c
+++ b/
src/lib/openjp2/t2.c
@@
-1163,6
+1163,7
@@
OPJ_BOOL opj_t2_read_packet_data( opj_t2_t* p_t2,
OPJ_BYTE* new_cblk_data = (OPJ_BYTE*) opj_realloc(l_cblk->data, l_cblk->data_current_size + l_seg->newlen);
if(! new_cblk_data) {
opj_free(l_cblk->data);
+ l_cblk->data = NULL;
l_cblk->data_max_size = 0;
/* opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to realloc code block cata!\n"); */
return OPJ_FALSE;