-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Big-endian fix: Accessing OBJECTHEADER in ImageConverter (#50499)
* Big-endian fix: Accessing OBJECTHEADER in ImageConverter The GetBitmapStream routine in ImageConverter is supposed to skip an embedded OBJECTHEADER structure. However, this structure needs to be read in little-endian mode, not in native byte order. Fixes the ImageConverterTest.ImageWithOleHeader test on big-endian systems. * Update src/libraries/System.Drawing.Common/src/System/Drawing/ImageConverter.cs Co-authored-by: Stephen Toub <[email protected]>
- Loading branch information
1 parent
e5efbd8
commit 78acffe
Showing
1 changed file
with
24 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters