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

MemoryError with fuzzed sample #19

Open
fgeek opened this Issue Apr 1, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@fgeek
Copy link
Contributor

fgeek commented Apr 1, 2015

Fuzzed sample: http://bugs.fi/media/afl/enzyme/enzyme-012.mkv
Fuzzers used: http://lcamtuf.coredump.cx/afl/ https://bitbucket.org/jwilk/python-afl
SHA1: 90813b495864e305d1af9924e5df6c0db042746f

mkvinfo.py:

import sys
import enzyme
inputfile = sys.argv[1]
try:
    with open(inputfile, 'rb') as f:
        mkv = enzyme.MKV(f)
    print(mkv.info)
    print(mkv.video_tracks)
    print(mkv.audio_tracks)
except enzyme.exceptions.MalformedMKVError:
    pass
Traceback (most recent call last):
  File "mkvinfo.py", line 8, in <module>
    mkv = enzyme.MKV(f)
  File "/usr/local/lib/python2.7/dist-packages/enzyme-0.4.1-py2.7.egg/enzyme/mkv.py", line 53, in __init__
    seek_head.load(stream, specs, ignore_element_names=['Void', 'CRC-32'])
  File "/usr/local/lib/python2.7/dist-packages/enzyme-0.4.1-py2.7.egg/enzyme/parsers/ebml/core.py", line 107, in load
    self.data = parse(stream, specs, self.size, ignore_element_types, ignore_element_names, max_level)
  File "/usr/local/lib/python2.7/dist-packages/enzyme-0.4.1-py2.7.egg/enzyme/parsers/ebml/core.py", line 180, in parse
    element.data = parse(stream, specs, element.size, ignore_element_types, ignore_element_names, max_level)
  File "/usr/local/lib/python2.7/dist-packages/enzyme-0.4.1-py2.7.egg/enzyme/parsers/ebml/core.py", line 165, in parse
    element = parse_element(stream, specs)
  File "/usr/local/lib/python2.7/dist-packages/enzyme-0.4.1-py2.7.egg/enzyme/parsers/ebml/core.py", line 221, in parse_element
    element.data = READERS[element_type](stream, element_size)
  File "/usr/local/lib/python2.7/dist-packages/enzyme-0.4.1-py2.7.egg/enzyme/parsers/ebml/readers.py", line 235, in read_element_binary
    return BytesIO(stream.read(size))
MemoryError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment