Skip to content

Commit

Permalink
Limit image maximum width and height to 2048 pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jan 22, 2018
1 parent fe43306 commit e8be814
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Magick++/fuzz/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class FuzzingLimits {
Magick::SecurityPolicy::maxMemoryRequest(256000000);
Magick::ResourceLimits::memory(1000000000);
Magick::ResourceLimits::map(500000000);
Magick::ResourceLimits::width(2048);
Magick::ResourceLimits::height(2048);
}
};

Expand Down

0 comments on commit e8be814

Please sign in to comment.