OSDN Git Service

1000 < shape_with_style->count の条件に引っかかった時に count を 0 にするよう改造
authoryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Thu, 27 Aug 2009 17:00:28 +0000 (17:00 +0000)
committeryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Thu, 27 Aug 2009 17:00:28 +0000 (17:00 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@182 7c90b180-03d5-4157-b861-58a559ae9d1e

src/swf_line_style_array.c

index 48ed683..0aa171d 100644 (file)
@@ -27,6 +27,7 @@ swf_line_style_array_parse(bitstream_t *bs,
     if (1000 < shape_with_style->count) { // XXX
         fprintf(stderr, "swf_line_style_array_parse: too many count(%d)\n",
                 shape_with_style->count);
+        shape_with_style->count = 0;
         return 1;
     }
     shape_with_style->line_style = calloc(shape_with_style->count, sizeof(swf_line_style_t));