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

SEGV in SWF::DefineFont2::write(SWF::Writer*, SWF::Context*) #59

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

SEGV in SWF::DefineFont2::write(SWF::Writer*, SWF::Context*) #59

Cvjark opened this issue Jul 11, 2022 · 0 comments

Comments

@Cvjark
Copy link

Cvjark commented Jul 11, 2022

sample file

id0_SEGV_DefineFont2_write.zip

command to reproduce

./swfmill xml2swf [sample file]

crash detail

AddressSanitizer:DEADLYSIGNAL
=================================================================
==55697==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x0000006c4944 bp 0x00000000005e sp 0x7fff161ee980 T0)
==55697==The signal is caused by a READ memory access.
==55697==Hint: address points to the zero page.
    #0 0x6c4944 in SWF::DefineFont2::write(SWF::Writer*, SWF::Context*) /home/bupt/Desktop/swfmill/src/gSWFWriter.cpp
    #1 0x6a2eac in SWF::Header::write(SWF::Writer*, SWF::Context*) /home/bupt/Desktop/swfmill/src/gSWFWriter.cpp:232:16
    #2 0x53d45c in SWF::File::save(_IO_FILE*, SWF::Context*) /home/bupt/Desktop/swfmill/src/SWFFile.cpp:158:11
    #3 0x54f8b9 in swfmill_xml2swf(int, char**) /home/bupt/Desktop/swfmill/src/swfmill.cpp:251:21
    #4 0x7fd92a2abc86 in __libc_start_main /build/glibc-CVJwZb/glibc-2.27/csu/../csu/libc-start.c:310
    #5 0x4224d9 in _start (/home/bupt/Desktop/swfmill/src/swfmill+0x4224d9)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/bupt/Desktop/swfmill/src/gSWFWriter.cpp in SWF::DefineFont2::write(SWF::Writer*, SWF::Context*)
==55697==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