-
Notifications
You must be signed in to change notification settings - Fork 87
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
fix: make senc parsing more robust #401
Conversation
c7552cc
to
7bb380f
Compare
Thanks for doing this! |
Doing more fuzzing with these fixes I found the Lines 285 to 298 in 7bb380f
was using a lot of CPU and it wasn't going into the You can replicate it by making
and run:
once this branch has been rebased off of the latest master.
|
7bb380f
to
ae02564
Compare
OK. Thanks for the input. The |
mp4/senc.go
Outdated
if version > 0 { | ||
return nil, fmt.Errorf("version %d not supported", version) | ||
} | ||
|
||
if version > 0 { | ||
return nil, fmt.Errorf("version %d not supported", version) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you accidentally duplicated this condition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. thanks for pointing that out.
ae02564
to
672e51c
Compare
I've run the fuzzer on this for 40 minutes and not found any additional issues with this box. |
672e51c
to
3262da0
Compare
Added checks that values are OK in initial decode of SencBox.
Fixes #400, and makes the mentioned fuzz test obsolete.