These pages are written by only Japanese.
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
|||||||||||||||||||||||||||||||||||||||||||||||||||
$swfdata = file_get_contents("saitama.swf"); $obj = new SWFEditor(); $obj->input($swfdata); $obj->swfInfo();
magic=FWS version=4 file_length=2704 frame_size=(0, 0)-(240, 240) frame_rate=8.0 frame_count=40
swf_tag_t *swf_tag_create(bitstream_t *bs) { swf_tag_t *tag = calloc(1, sizeof(*tag)); int tag_and_length, length; tag_and_length = bitstream_getbytesLE(bs, 2); tag->tag = tag_and_length >> 6; tag->length = tag_and_length & 0x3f; tag->length_longformat = 0; if (tag->length == 0x3f) { tag->length = bitstream_getbytesLE(bs, 4); tag->length_longformat = 1; } tag->data = calloc(tag->length, 1); bitstream_getstring(bs, tag->data, tag->length); tag->modified = 0; return tag; }実行結果。
% php yoya_test.php *** glibc detected *** php: malloc(): memory corruption: 0x09d202e8 *** ======= Backtrace: ========= /lib/libc.so.6[0x2bd14c]さて、寝よっと…
magic=FWS version=4 file_length=2704 frame_size=(0, 0)-(240, 240) frame_rate=8.0 frame_count=40 tag=9 length=3 tag=1 length=0 <略> tag=26 length=7 tag=1 length=0 tag=0 length=0タグの分解まで出来ちゃった…