Skip to content

Disable Bitmap round-tripping tests for old libgdiplus versions - #34354

Merged
safern merged 3 commits into
dotnet:masterfrom
jkotas:gdiplus
Apr 1, 2020
Merged

Disable Bitmap round-tripping tests for old libgdiplus versions#34354
safern merged 3 commits into
dotnet:masterfrom
jkotas:gdiplus

Conversation

@jkotas

@jkotas jkotas commented Apr 1, 2020

Copy link
Copy Markdown
Member

Old libgdiplus versions have uninitialized stack variable bug that makes Bitmap round-tripping unreliable. The bug causes Bitmap.Flags, Bitmap.HorizontalResolution and Bitmap.VerticalResolution properties to be set to bogus values if the stack happens to contain certain bit patterns. This bug was fixed for libgdiplus 6 by mono/libgdiplus@81e45a1#diff-c96a8261ecb168c12b44248208da21c0R118.

jkotas added 2 commits March 31, 2020 19:22
Old libgdiplus versions have uninitialized stack variable bug that makes Bitmap round-tripping unreliable. The bug causes Bitmap.Flags, Bitmap.HorizontalResolution and Bitmap.VerticalResolution properties to be set to bogus values if the stack happens to contain certain bit patterns. This bug was fixed for libgdiplus 6 by mono/libgdiplus@81e45a1#diff-c96a8261ecb168c12b44248208da21c0R118.

@stephentoub stephentoub left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice job tracking it down.

@safern safern left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good job tracking it down. I wonder why it hasn’t failed on Ubuntu16.04 as those machines also have an old libgdiplus.

I’ll work on updating libgdiplus with the engineering team on those machines.

@safern

safern commented Apr 1, 2020

Copy link
Copy Markdown
Member

Failure is: #34358

@safern
safern merged commit e1fa5d7 into dotnet:master Apr 1, 2020
@jkotas
jkotas deleted the gdiplus branch April 1, 2020 08:14
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants