summaryrefslogtreecommitdiff
path: root/src/lib/openjpip/msgqueue_manager.c
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-02-26 09:35:11 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-02-26 09:35:11 +0000
commitb56fb96b1b0feaa80890ed0a77b1d7d43ca2212f (patch)
treeebfe42a56fcdeb4a4dd0d68644c07bd95b86ca81 /src/lib/openjpip/msgqueue_manager.c
parent163c7e34605a8b5e1ea69f81a8c9ea068d42fd53 (diff)
[trunk] Fix invalid write access in JPIP code.
Fixes issue 261
Diffstat (limited to 'src/lib/openjpip/msgqueue_manager.c')
-rw-r--r--src/lib/openjpip/msgqueue_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjpip/msgqueue_manager.c b/src/lib/openjpip/msgqueue_manager.c
index 6cb19544..fab9a59c 100644
--- a/src/lib/openjpip/msgqueue_manager.c
+++ b/src/lib/openjpip/msgqueue_manager.c
@@ -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->LBox = big4( datastream);
- strcpy( phld->TBox, "phld");
+ strncpy( phld->TBox, "phld", 4);
phld->Flags = big4( datastream+8);
phld->OrigID = big8( datastream+12);
phld->OrigBHlen = (Byte_t)(metalength - 20);