-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
fuzz imagemagick #430
Comments
We would love to join. Can you give us some pointers on how to set this up? |
Sure! It's quite simple. We use docker to provide the same environment for both developers and our infrastructure, more info on adding new project: https://github.com/google/oss-fuzz/blob/master/docs/new_project_guide.md If you've never touched libFuzzer, it would be good to go through tutorial.libfuzzer.info. It's like writing a unit test. For example, I see That function needs a pointer to A So, a new fuzz target may be something like: using namespace Magick;
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
const Blob blob(Data, Size);
Image image(blob);
ExceptionInfo ex;
auto res = HuffmanDecodeImage(&image, &ex);
// maybe call something else?
return 0;
} |
Been away for the whole last month. Haven't given it a try yet. Hope I will be able to work on this in a couple weeks. |
Thanks @dlemstra |
Could you reopen this issue and assign it to me @inferno-chromium? I lost track of this again. |
@dlemstra - can't assign it to you, but lets keep this open for tracking. |
This can be closed now, it's happening! |
https://www.imagemagick.org/script/index.php had a plenty of security problems and probably still has them.
The text was updated successfully, but these errors were encountered: