[Swfed-svn] swfed-svn [59] PNG 処理の結果 tag が 20 でも 36 でも無くなった場合にエラーを吐くよう改造 ( failsafe)

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 10月 7日 (火) 01:41:02 JST


Revision: 59
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=swfed&view=rev&rev=59
Author:   yoya
Date:     2008-10-07 01:41:02 +0900 (Tue, 07 Oct 2008)

Log Message:
-----------
PNG 処理の結果 tag が 20 でも 36 でも無くなった場合にエラーを吐くよう改造 (failsafe)

Modified Paths:
--------------
    src/swf_tag_lossless.c


-------------- next part --------------
Modified: src/swf_tag_lossless.c
===================================================================
--- src/swf_tag_lossless.c	2008-10-06 16:38:22 UTC (rev 58)
+++ src/swf_tag_lossless.c	2008-10-06 16:41:02 UTC (rev 59)
@@ -395,6 +395,9 @@
             swf_tag_lossless->colormap = (swf_rgb_t*) colormap;
         } else if (tag_no == 36) {
             swf_tag_lossless->colormap2 = (swf_rgba_t*) colormap;
+        } else {
+            fprintf(stderr, "swf_tag_lossless_replace_lossless_data: internal error tag_no(%d) at line(%d).\n", tag_no, __LINE__);
+            return 1;
         }
         swf_tag_lossless->colormap_count = colormap_count;
         swf_tag_lossless->indices = (unsigned char *) result_data;


Swfed-svn メーリングリストの案内
Back to archive index