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

fix: add guards for MagickImage.Shave #1581

Merged
merged 2 commits into from
Mar 9, 2024

Conversation

Gounlaf
Copy link
Sponsor Contributor

@Gounlaf Gounlaf commented Mar 8, 2024

👋

Same as usual 😅 : adding guards to prevent negative parameters.

Regards.

[Fact]
public void ShouldThrowExceptionWhenSizeIsNegative()
{
using var image = new MagickImage(Files.Builtin.Logo);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think we need to load an image here.

Copy link
Sponsor Contributor Author

@Gounlaf Gounlaf Mar 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duly noted. Saw your commits removing image loading. Will update this PR.

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased & updated as requested.

@dlemstra dlemstra merged commit 833dc8c into dlemstra:main Mar 9, 2024
26 checks passed
@Gounlaf Gounlaf deleted the magickimage-shave-guards branch March 9, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants