From: yoya Date: Wed, 11 Dec 2013 17:39:17 +0000 (+0900) Subject: fixed to case no null terminate in swf action record. X-Git-Tag: v0_61~2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=27b05605269062a5cda1bb6978a5b9e80fe4a17d;p=swfed%2Fswfed.git fixed to case no null terminate in swf action record. --- diff --git a/src/swf_action.c b/src/swf_action.c index c227456..1011486 100644 --- a/src/swf_action.c +++ b/src/swf_action.c @@ -223,7 +223,7 @@ swf_action_list_create(void) { int swf_action_list_parse(bitstream_t *bs, swf_action_list_t *action_list) { swf_action_t *action; - while (1) { + while (bitstream_hasnext(bs, 1, 0)) { action = calloc(sizeof(*action), 1); if (action == NULL) { fprintf(stderr, "Can't alloc memory for action\n");