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

Segmentation Fault in swf parser #2

Open
MrLanza opened this issue Apr 22, 2011 · 0 comments
Open

Segmentation Fault in swf parser #2

MrLanza opened this issue Apr 22, 2011 · 0 comments

Comments

@MrLanza
Copy link

MrLanza commented Apr 22, 2011

Got this with apache2 / passenger and ruby 1.8.6 and a 1.7 MB swf.

<RAILS_ROOT>/plugins/image_spec/lib/parsers/swf.rb:41: [BUG] Segmentation fault
ruby 1.8.6 (2008-03-03) [i686-linux]

The segfault happens here, at line 41 in swf.rb :

    # And reconstruct the stream contents to the first 8 bytes (header)
    # Plus our decompressed body
    contents = contents[0..7] + body

I think this is not really needed since following code does not use the header bytes anymore.
I fixed this in my own copy, but I'm sorry i'm not a regular git user, so I do not know how to commit my patch as for now.

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