Skip to content

Comments

Fix Issue 24079 - core.sys.windows.winnt.IMAGE_FIRST_SECTION returns bad pointer#15519

Merged
dkorpel merged 1 commit intodlang:stablefrom
n8sh:issue-24079
Aug 8, 2023
Merged

Fix Issue 24079 - core.sys.windows.winnt.IMAGE_FIRST_SECTION returns bad pointer#15519
dkorpel merged 1 commit intodlang:stablefrom
n8sh:issue-24079

Conversation

@n8sh
Copy link
Member

@n8sh n8sh commented Aug 8, 2023

IMAGE_FIRST_SECTION adds an integer representing a number of bytes to a pointer of type IMAGE_OPTIONAL_HEADER* resulting in a change 240 times (IMAGE_OPTIONAL_HEADER64*) or 224 times (IMAGE_OPTIONAL_HEADER32*) as large as intended.

https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-image_file_header

SizeOfOptionalHeader: The size of the optional header, in bytes.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @n8sh!

Bugzilla references

Auto-close Bugzilla Severity Description
24079 normal core.sys.windows.winnt.IMAGE_FIRST_SECTION returns bad pointer

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "stable + dmd#15519"

@dkorpel dkorpel merged commit c32f0a3 into dlang:stable Aug 8, 2023
@ibuclaw ibuclaw mentioned this pull request Aug 15, 2023
maxhaton pushed a commit that referenced this pull request Aug 15, 2023
This was referenced Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants