Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug report swftools-pdf2swf #184

Open
Cvjark opened this issue Jul 4, 2022 · 0 comments
Open

bug report swftools-pdf2swf #184

Cvjark opened this issue Jul 4, 2022 · 0 comments

Comments

@Cvjark
Copy link

Cvjark commented Jul 4, 2022

heap buffer overflow

reproduce

command to reproduce: ./pdf2swf -G -f -t [sample file] -o /dev/null

sample file

id458_heap_overflow_draw_stroke.zip

crash info

==11942==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x607000000690 at pc 0x00000092ce96 bp 0x7fff21d34940 sp 0x7fff21d34938
WRITE of size 8 at 0x607000000690 thread T0
    #0 0x92ce95 in draw_stroke /home/bupt/Desktop/swftools/lib/gfxpoly/stroke.c:207:17
    #1 0x92e224 in gfxpoly_from_stroke /home/bupt/Desktop/swftools/lib/gfxpoly/stroke.c:226:5
    #2 0x90989c in polyops_stroke /home/bupt/Desktop/swftools/lib/devices/polyops.c:229:23
    #3 0x7c1563 in VectorGraphicOutputDev::strokeGfxline(GfxState*, _gfxline*, int) /home/bupt/Desktop/swftools/lib/pdf/VectorGraphicOutputDev.cc:612:9
    #4 0x7cd69e in VectorGraphicOutputDev::stroke(GfxState*) /home/bupt/Desktop/swftools/lib/pdf/VectorGraphicOutputDev.cc:1487:5
    #5 0x6eeffa in Gfx::opStroke(Object*, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Gfx.cc:1415:12
    #6 0x705f02 in Gfx::execOp(Object*, Object*, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Gfx.cc:693:3
    #7 0x7049c1 in Gfx::go(int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Gfx.cc:584:7
    #8 0x703ea8 in Gfx::display(Object*, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Gfx.cc:556:3
    #9 0x6b9401 in Page::displaySlice(OutputDev*, double, double, int, int, int, int, int, int, int, int, Catalog*, int (*)(void*), void*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Page.cc:317:10
    #10 0x6b8cee in Page::display(OutputDev*, double, double, int, int, int, int, Catalog*, int (*)(void*), void*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Page.cc:264:3
    #11 0x6099b0 in PDFDoc::displayPage(OutputDev*, int, double, double, int, int, int, int, int (*)(void*), void*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/PDFDoc.cc:317:27
    #12 0x5f87d5 in render2(_gfxpage*, _gfxdevice*, int, int, int, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/pdf.cc:164:14
    #13 0x5f8e64 in pdfpage_rendersection(_gfxpage*, _gfxdevice*, double, double, double, double, double, double) /home/bupt/Desktop/swftools/lib/pdf/pdf.cc:190:5
    #14 0x501816 in main /home/bupt/Desktop/swftools/src/pdf2swf.c:832:3
    #15 0x7f395ddd6c86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
    #16 0x420b99 in _start (/home/bupt/Desktop/swftools/build/bin/pdf2swf+0x420b99)

0x607000000690 is located 0 bytes to the right of 80-byte region [0x607000000640,0x607000000690)
allocated by thread T0 here:
    #0 0x4b3160 in malloc /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:145
    #1 0x92c94f in draw_stroke /home/bupt/Desktop/swftools/lib/gfxpoly/stroke.c:192:26

SUMMARY: AddressSanitizer: heap-buffer-overflow /home/bupt/Desktop/swftools/lib/gfxpoly/stroke.c:207:17 in draw_stroke
Shadow bytes around the buggy address:
  0x0c0e7fff8080: fa fa fd fd fd fd fd fd fd fd fd fd fa fa fa fa
  0x0c0e7fff8090: fd fd fd fd fd fd fd fd fd fa fa fa fa fa fd fd
  0x0c0e7fff80a0: fd fd fd fd fd fd fd fa fa fa fa fa fd fd fd fd
  0x0c0e7fff80b0: fd fd fd fd fd fd fa fa fa fa fd fd fd fd fd fd
  0x0c0e7fff80c0: fd fd fd fa fa fa fa fa 00 00 00 00 00 00 00 00
=>0x0c0e7fff80d0: 00 00[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c0e7fff80e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c0e7fff80f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c0e7fff8100: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c0e7fff8110: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c0e7fff8120: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==11942==ABORTING

Stack buffer overflow

reproduce

command to reproduce: ./pdf2swf -G -f -t [sample file] -o /dev/null

sample file

id407_stack_overflow_getcurrentthread.zip

crash info

==4742==ERROR: AddressSanitizer: stack-overflow on address 0x7ffff930cff8 (pc 0x0000004e43a9 bp 0x000000eeb720 sp 0x7ffff930cfd0 T0)
    #0 0x4e43a9 in __sanitizer::StackDepotNode::hash(__sanitizer::StackTrace const&) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp:54
    #1 0x4e43a9 in __sanitizer::StackDepotBase<__sanitizer::StackDepotNode, 1, 20>::Put(__sanitizer::StackTrace, bool*) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h:104
    #2 0x4e43a9 in __sanitizer::StackDepotPut(__sanitizer::StackTrace) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp:98
    #3 0x428654 in __asan::Allocator::Allocate(unsigned long, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType, bool) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/asan_allocator.cpp:573
    #4 0x4295e6 in __asan::asan_malloc(unsigned long, __sanitizer::BufferedStackTrace*) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/asan_allocator.cpp:980
    #5 0x4b3133 in malloc /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:146
    #6 0x607dd8 in gmalloc(int, bool) /home/bupt/Desktop/swftools/lib/pdf/xpdf/gmem.cc:101:13
    #7 0x607dd8 in gmalloc /home/bupt/Desktop/swftools/lib/pdf/xpdf/gmem.cc:116:12
    #8 0x607dd8 in copyString /home/bupt/Desktop/swftools/lib/pdf/xpdf/gmem.cc:301:16
    #9 0x664133 in Object::initCmd(char*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:103:30
    #10 0x664133 in Lexer::getObj(Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Lexer.cc:357:10
    #11 0x65d52b in Parser::shift() /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:226:12
    #12 0x65d52b in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:108:5
    #13 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #14 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #15 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #16 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #17 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #18 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #19 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #20 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #21 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #22 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #23 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #24 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #25 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #26 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #27 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #28 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #29 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #30 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #31 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #32 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #33 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #34 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #35 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18

    //...omission

    #286 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #287 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #288 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #289 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #290 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9

SUMMARY: AddressSanitizer: stack-overflow /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp:54 in __sanitizer::StackDepotNode::hash(__sanitizer::StackTrace const&)
==4742==ABORTING

reproduce

command to reproduce: ./pdf2swf -G -f -t [sample file] -o /dev/null

sample file

id465_stack_overflow_buffered_vfprintf.zip

crash info

==27980==ERROR: AddressSanitizer: stack-overflow on address 0x7ffe5cfafef8 (pc 0x7f211a7bd396 bp 0x7ffe5cfb03b0 sp 0x7ffe5cfafe40 T0)
    #0 0x7f211a7bd396 in vfprintf /build/glibc-CVJwZb/glibc-2.27/stdio-common/vfprintf.c:1275
    #1 0x7f211a7c063f in buffered_vfprintf /build/glibc-CVJwZb/glibc-2.27/stdio-common/vfprintf.c:2329
    #2 0x7f211a7bd6f5 in vfprintf /build/glibc-CVJwZb/glibc-2.27/stdio-common/vfprintf.c:1301
    #3 0x451e56 in vfprintf /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:1647
    #4 0x451f66 in fprintf /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:1704
    #5 0x60abb7 in error(int, char*, ...) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Error.cc:29:5
    #6 0x65c6e9 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:76:2
    #7 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #8 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #9 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #10 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #11 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #12 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #13 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #14 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #15 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #16 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #17 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #18 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #19 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #20 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #21 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #22 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #23 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #24 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #25 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #26 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #27 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #28 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #29 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #30 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #31 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #32 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #33 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #34 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #35 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #36 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #37 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #38 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #39 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #40 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #41 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #42 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #43 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #44 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #45 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #46 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #47 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #48 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #49 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #50 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #51 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #52 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #53 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #54 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #55 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #56 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #57 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #58 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #59 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #60 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #61 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #62 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #63 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #64 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #65 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #66 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #67 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #68 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #69 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #70 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #71 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #72 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #73 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #74 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #75 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #76 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #77 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #78 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #79 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #80 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #81 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #82 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #83 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #84 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #85 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #86 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #87 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #88 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #89 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #90 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #91 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #92 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #93 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #94 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #95 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #96 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #97 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #98 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #99 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #100 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #101 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #102 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #103 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #104 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #105 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #106 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #107 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #108 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #109 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #110 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #111 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #112 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #113 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #114 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #115 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #116 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #117 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #118 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #119 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #120 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #121 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #122 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #123 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #124 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #125 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #126 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #127 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #128 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #129 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #130 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #131 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #132 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #133 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #134 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #135 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #136 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #137 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #138 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #139 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #140 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #141 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #142 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #143 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #144 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #145 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #146 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #147 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #148 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #149 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #150 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #151 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #152 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #153 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #154 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #155 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #156 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #157 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #158 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #159 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #160 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #161 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #162 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #163 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #164 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #165 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #166 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #167 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #168 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #169 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #170 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #171 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #172 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #173 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #174 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #175 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #176 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #177 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #178 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #179 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #180 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #181 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #182 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #183 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #184 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #185 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #186 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #187 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #188 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #189 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #190 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #191 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #192 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #193 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #194 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #195 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #196 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #197 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #198 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #199 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #200 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #201 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #202 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #203 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #204 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #205 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #206 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #207 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #208 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #209 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #210 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #211 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #212 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #213 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #214 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #215 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #216 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #217 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #218 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #219 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #220 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #221 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #222 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #223 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #224 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #225 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #226 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #227 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #228 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #229 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #230 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #231 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #232 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #233 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #234 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #235 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #236 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #237 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #238 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #239 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #240 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #241 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #242 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #243 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #244 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #245 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #246 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #247 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #248 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #249 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #250 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #251 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #252 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #253 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #254 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #255 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #256 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #257 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #258 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #259 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #260 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #261 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #262 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #263 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #264 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #265 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #266 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #267 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #268 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #269 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #270 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #271 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #272 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #273 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #274 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #275 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #276 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18
    #277 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    #278 0x65c9cd in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:85:20
    #279 0x65375a in XRef::fetch(int, int, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/XRef.cc:823:13
    #280 0x6501de in Object::fetch(XRef*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc:106:16
    #281 0x65b0a4 in Dict::lookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Dict.cc:76:35
    #282 0x65f092 in Object::dictLookup(char*, Object*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.h:253:18
    #283 0x65f092 in Parser::makeStream(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:156:9
    #284 0x65d23e in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:94:18

SUMMARY: AddressSanitizer: stack-overflow /build/glibc-CVJwZb/glibc-2.27/stdio-common/vfprintf.c:1275 in vfprintf
==27980==ABORTING

reproduce

command to reproduce: ./pdf2swf -G -f -t [sample file] -o /dev/null

sample file

id479_stack_overflow___asanAllocatorAllocate.zip

crash info

==29770==ERROR: AddressSanitizer: stack-overflow on address 0x7ffccd202fe8 (pc 0x0000004e43a9 bp 0x7fb33d9f7000 sp 0x7ffccd202fc0 T0)
    #0 0x4e43a9 in __sanitizer::StackDepotNode::hash(__sanitizer::StackTrace const&) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp:54
    #1 0x4e43a9 in __sanitizer::StackDepotBase<__sanitizer::StackDepotNode, 1, 20>::Put(__sanitizer::StackTrace, bool*) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h:104
    #2 0x4e43a9 in __sanitizer::StackDepotPut(__sanitizer::StackTrace) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp:98
    #3 0x42b232 in __asan::Allocator::QuarantineChunk(__asan::AsanChunk*, void*, __sanitizer::BufferedStackTrace*) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/asan_allocator.cpp:640
    #4 0x42b232 in __asan::Allocator::Deallocate(void*, unsigned long, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/asan_allocator.cpp:714
    #5 0x42b232 in __asan::asan_free(void*, __sanitizer::BufferedStackTrace*, __asan::AllocType) /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/asan_allocator.cpp:971
    #6 0x4b2e60 in free /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:128
    #7 0x607d1b in gfree /home/bupt/Desktop/swftools/lib/pdf/xpdf/gmem.cc:275:5
    #8 0x65039b in Object::free() /home/bupt/Desktop/swftools/lib/pdf/xpdf/Object.cc
    #9 0x65bbdc in Parser::shift() /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:221:8
    #10 0x65bbdc in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:61:5
    #11 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21
    //........
    #254 0x65bdd6 in Parser::getObj(Object*, unsigned char*, CryptAlgorithm, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Parser.cc:64:21

SUMMARY: AddressSanitizer: stack-overflow /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp:54 in __sanitizer::StackDepotNode::hash(__sanitizer::StackTrace const&)
==29770==ABORTING

memory leak

reproduce

command to reproduce: ./pdf2swf -G -f -t [sample file] -o /dev/null

sample file

id472_memory_leak.zip

crash info

=28310==ERROR: LeakSanitizer: detected memory leaks

Indirect leak of 96 byte(s) in 2 object(s) allocated from:
    #0 0x4b3160 in malloc /home/bupt/Desktop/tools/llvm-12.0.1/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:145
    #1 0x96870e in rfx_alloc /home/bupt/Desktop/swftools/lib/mem.c:30:9
    #2 0x7efc80cddc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310

SUMMARY: AddressSanitizer: 96 byte(s) leaked in 2 allocation(s).

SEGV

reproduce

command to reproduce: ./pdf2swf -G -f -t [sample file] -o /dev/null

sample file

id382_SEGV_getchar.zip

crash info

==3792==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x000000632fbf bp 0x000000000000 sp 0x7fffb1af4390 T0)
==3792==The signal is caused by a READ memory access.
==3792==Hint: address points to the zero page.
    #0 0x632fbf in DCTStream::getChar() /home/bupt/Desktop/swftools/lib/pdf/xpdf/Stream.cc:2048:9
    #1 0x60e023 in ImageStream::getLine() /home/bupt/Desktop/swftools/lib/pdf/xpdf/Stream.cc:373:25
    #2 0x60dd51 in ImageStream::getPixel(unsigned char*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Stream.cc:344:5
    #3 0x7c9dc5 in VectorGraphicOutputDev::drawGeneralImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, int, int, int, int*, Stream*, int, int, int, GfxImageColorMap*) /home/bupt/Desktop/swftools/lib/pdf/VectorGraphicOutputDev.cc:1303:12
    #4 0x7ccc45 in VectorGraphicOutputDev::drawImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, int*, int) /home/bupt/Desktop/swftools/lib/pdf/VectorGraphicOutputDev.cc:1430:5
    #5 0x71dc57 in Gfx::doImage(Object*, Stream*, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Gfx.cc:3664:12
    #6 0x6ec5e0 in Gfx::opXObject(Object*, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Gfx.cc:3336:7
    #7 0x705f02 in Gfx::execOp(Object*, Object*, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Gfx.cc:693:3
    #8 0x7049c1 in Gfx::go(int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Gfx.cc:584:7
    #9 0x703ea8 in Gfx::display(Object*, int) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Gfx.cc:556:3
    #10 0x6b9401 in Page::displaySlice(OutputDev*, double, double, int, int, int, int, int, int, int, int, Catalog*, int (*)(void*), void*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Page.cc:317:10
    #11 0x6b8cee in Page::display(OutputDev*, double, double, int, int, int, int, Catalog*, int (*)(void*), void*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/Page.cc:264:3
    #12 0x6099b0 in PDFDoc::displayPage(OutputDev*, int, double, double, int, int, int, int, int (*)(void*), void*) /home/bupt/Desktop/swftools/lib/pdf/xpdf/PDFDoc.cc:317:27
    #13 0x5f87d5 in render2(_gfxpage*, _gfxdevice*, int, int, int, int, int, int) /home/bupt/Desktop/swftools/lib/pdf/pdf.cc:164:14
    #14 0x5f8e64 in pdfpage_rendersection(_gfxpage*, _gfxdevice*, double, double, double, double, double, double) /home/bupt/Desktop/swftools/lib/pdf/pdf.cc:190:5
    #15 0x501816 in main /home/bupt/Desktop/swftools/src/pdf2swf.c:832:3
    #16 0x7f66704d8c86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
    #17 0x420b99 in _start (/home/bupt/Desktop/swftools/build/bin/pdf2swf+0x420b99)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/bupt/Desktop/swftools/lib/pdf/xpdf/Stream.cc:2048:9 in DCTStream::getChar()
==3792==ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant