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

out-of-memory in swftocxx (Version 0.4.9) #247

Open
WorldExecute opened this issue Aug 14, 2022 · 0 comments
Open

out-of-memory in swftocxx (Version 0.4.9) #247

WorldExecute opened this issue Aug 14, 2022 · 0 comments

Comments

@WorldExecute
Copy link

WorldExecute commented Aug 14, 2022

Hi, i find 2 out-of-memory errors in swftocxx . I saved all my test files here.

Bug Description

I apply ASan (Address Sanitizer ) to check for address errors and the error report is as follows.

test_1:
header indicates a filesize of 117920368 but filesize is 880
 CharacterEndFlag in DefineButton2 != 0parseSWF_BUTTONCONDACTION: expected actionEnd flag
 Stream out of sync after parse of blocktype 34 (SWF_DEFINEBUTTON2). 513 but expecting 55.
=================================================================
==228662==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0x46008004 bytes
==228662==WARNING: failed to fork (errno 12)
==228662==WARNING: failed to fork (errno 12)
==228662==WARNING: failed to fork (errno 12)
==228662==WARNING: failed to fork (errno 12)
==228662==WARNING: failed to fork (errno 12)
==228662==WARNING: Failed to use and restart external symbolizer!
    #0 0x494bcd  (./libming/install-asan/bin/swftocxx+0x494bcd)
    #1 0x4fdc4e  (./libming/install-asan/bin/swftocxx+0x4fdc4e)
    #2 0x4fa943  (./libming/install-asan/bin/swftocxx+0x4fa943)

==228662==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: out-of-memory (./libming/install-asan/bin/swftocxx+0x494bcd) 
==228662==ABORTING

test_2:
header indicates a filesize of 117920647 but filesize is 1097
Failed to find branch target!!!
Looking for: 32531

Failed to find branch target!!!
Looking for: 32531

Failed to find branch target!!!
Looking for: 32539

parseSWF_BUTTONCONDACTION: expected actionEnd flag
 Stream out of sync after parse of blocktype 34 (SWF_DEFINEBUTTON2). 682 but expecting 55.
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
  Can't get int for type: 10
=================================================================
==228380==ERROR: AddressSanitizer: allocator is out of memory trying to allocate 0xe6b9c30 bytes
==228380==WARNING: failed to fork (errno 12)
==228380==WARNING: failed to fork (errno 12)
==228380==WARNING: failed to fork (errno 12)
==228380==WARNING: failed to fork (errno 12)
==228380==WARNING: failed to fork (errno 12)
==228380==WARNING: Failed to use and restart external symbolizer!
    #0 0x494d42  (./libming/install-asan/bin/swftocxx+0x494d42)
    #1 0x4ecd87  (./libming/install-asan/bin/swftocxx+0x4ecd87)

==228380==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: out-of-memory (./libming/install-asan/bin/swftocxx+0x494d42) 
==228380==ABORTING

Steps to Reproduce

  1. Download the libming source code with the official link and build it with ASan (-fsanitize=address)
  2. Executing swftocxx with the provided input files
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