[trunk] Fix invalid write access in JPIP code.
Fixes issue 261
This commit is contained in:
parent
163c7e3460
commit
b56fb96b1b
|
@ -692,7 +692,7 @@ placeholder_param_t * parse_phld( Byte_t *datastream, Byte8_t metalength)
|
||||||
phld = (placeholder_param_t *)opj_malloc( sizeof(placeholder_param_t));
|
phld = (placeholder_param_t *)opj_malloc( sizeof(placeholder_param_t));
|
||||||
|
|
||||||
phld->LBox = big4( datastream);
|
phld->LBox = big4( datastream);
|
||||||
strcpy( phld->TBox, "phld");
|
strncpy( phld->TBox, "phld", 4);
|
||||||
phld->Flags = big4( datastream+8);
|
phld->Flags = big4( datastream+8);
|
||||||
phld->OrigID = big8( datastream+12);
|
phld->OrigID = big8( datastream+12);
|
||||||
phld->OrigBHlen = (Byte_t)(metalength - 20);
|
phld->OrigBHlen = (Byte_t)(metalength - 20);
|
||||||
|
|
Loading…
Reference in New Issue