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

IOError: [Errno 22] Invalid argument #16

Open
fgeek opened this issue Apr 1, 2015 · 1 comment
Open

IOError: [Errno 22] Invalid argument #16

fgeek opened this issue Apr 1, 2015 · 1 comment

Comments

@fgeek
Copy link
Contributor

@fgeek fgeek commented Apr 1, 2015

Fuzzed sample: http://bugs.fi/media/afl/enzyme/enzyme-008.mkv
Fuzzers used: http://lcamtuf.coredump.cx/afl/ https://bitbucket.org/jwilk/python-afl
SHA1: f5150df5239856849977e711945631a31f325f48
Notes: This is similar to issue #10

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 40, in __init__
    segments = ebml.parse(stream, specs, ignore_element_names=['EBML'], max_level=0)
  File "/usr/local/lib/python2.7/dist-packages/enzyme-0.4.1-py2.7.egg/enzyme/parsers/ebml/core.py", line 172, in parse
    stream.seek(element.size, 1)
IOError: [Errno 22] Invalid argument
@fgeek
Copy link
Contributor Author

@fgeek fgeek commented Apr 1, 2015

Very similar issue..

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

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 40, in __init__
    segments = ebml.parse(stream, specs, ignore_element_names=['EBML'], max_level=0)
  File "/usr/local/lib/python2.7/dist-packages/enzyme-0.4.1-py2.7.egg/enzyme/parsers/ebml/core.py", line 177, in parse
    stream.seek(element.size, 1)
IOError: [Errno 22] Invalid argument

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant