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 Issue 24079 - core.sys.windows.winnt.IMAGE_FIRST_SECTION returns bad pointer #15519

Merged
merged 1 commit into from
Aug 8, 2023

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
39 of 40 checks passed
@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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants