-
-
Notifications
You must be signed in to change notification settings - Fork 887
Relaxed bmp dimensions validation #2192
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
Conversation
| /// <summary> | ||
| /// Maximum dimensions of a bitmap with or height: 2**31 - 1, since width and height are int32 | ||
| /// </summary> | ||
| private const int MaximumBmpDimension = 2147483647; |
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.
This is not being used?
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.
no, it's no longer used, it's now removed.
JimBobSquarePants
left a comment
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.
Thanks for finishing this off.
When I first looked at this, I thought we'd be encoding using one of the older headers using unsigned width/height so thought it would be more complicated.
Prerequisites
Description
Relaxed bmp header dimensions checks so now the maximum possible values are accepted.