Skip to content

Conversation

@UE4SS
Copy link
Collaborator

@UE4SS UE4SS commented Dec 14, 2025

Description

This happened if the GMalloc scan finished so quickly that UE hadn't yet initialized it, leaving us with a pointer to a nullptr value.

Fixed by replacing 'UnrealStaticGMalloc' with 'GMalloc', and dereferencing GMalloc when access is needed.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have added the necessary description of this PR to the changelog, and I have followed the same format as other entries.
  • Any dependent changes have been merged and published in downstream modules.

Screenshots

Additional context

Needs this PR to be merged: https://github.com/Re-UE4SS/UEPseudo/pull/164

This happened if the GMalloc scan finished so quickly that UE hadn't yet initialized it, leaving us with a pointer to a nullptr value.

Fixed by replacing 'UnrealStaticGMalloc' with 'GMalloc', and dereferencing GMalloc when access is needed.
@github-actions
Copy link
Contributor

No description provided.

@UE4SS
Copy link
Collaborator Author

UE4SS commented Dec 14, 2025

Note that the build failure is because the mentioned PR in UEPseudo hasn't been merged yet.

@narknon narknon merged commit d0479fd into main Dec 19, 2025
2 of 15 checks passed
@narknon narknon deleted the gmalloc-fix branch December 19, 2025 14:56
WesternSpace added a commit to WesternSpace/RE-UE4SS-MafiaTOC that referenced this pull request Dec 19, 2025
commit 9a20a8f
Merge: d0479fd 32b76b7
Author: narknon <[email protected]>
Date:   Fri Dec 19 09:56:56 2025 -0500

    Merge pull request UE4SS-RE#1114 from UE4SS-RE/usmapupdate

    feat: update usmap gen for longer fname; over 255 enum values

commit d0479fd
Merge: 8a90a83 08b6a81
Author: narknon <[email protected]>
Date:   Fri Dec 19 09:56:39 2025 -0500

    Merge pull request UE4SS-RE#1111 from UE4SS-RE/gmalloc-fix

    fix: Dead GMalloc pointer

commit 8a90a83
Merge: 4dfc765 1aa913c
Author: narknon <[email protected]>
Date:   Fri Dec 19 09:55:39 2025 -0500

    Merge pull request UE4SS-RE#1117 from UE4SS-RE/update-ue-submodule

    Update UE Submodule

commit 1aa913c
Author: narknon <[email protected]>
Date:   Fri Dec 19 14:55:06 2025 +0000

    chore: update UE submodule

commit 32b76b7
Author: narknon <[email protected]>
Date:   Wed Dec 17 18:49:37 2025 -0500

    feat: update usmap gen for longer fname; over 255 enum values

commit 08b6a81
Author: UE4SS <[email protected]>
Date:   Sun Dec 14 11:08:50 2025 +0100

    fix: Dead GMalloc pointer

    This happened if the GMalloc scan finished so quickly that UE hadn't yet initialized it, leaving us with a pointer to a nullptr value.

    Fixed by replacing 'UnrealStaticGMalloc' with 'GMalloc', and dereferencing GMalloc when access is needed.
WesternSpace added a commit to WesternSpace/RE-UE4SS-MafiaTOC that referenced this pull request Dec 19, 2025
commit 9a20a8f
Merge: d0479fd 32b76b7
Author: narknon <[email protected]>
Date:   Fri Dec 19 09:56:56 2025 -0500

    Merge pull request UE4SS-RE#1114 from UE4SS-RE/usmapupdate

    feat: update usmap gen for longer fname; over 255 enum values

commit d0479fd
Merge: 8a90a83 08b6a81
Author: narknon <[email protected]>
Date:   Fri Dec 19 09:56:39 2025 -0500

    Merge pull request UE4SS-RE#1111 from UE4SS-RE/gmalloc-fix

    fix: Dead GMalloc pointer

commit 8a90a83
Merge: 4dfc765 1aa913c
Author: narknon <[email protected]>
Date:   Fri Dec 19 09:55:39 2025 -0500

    Merge pull request UE4SS-RE#1117 from UE4SS-RE/update-ue-submodule

    Update UE Submodule

commit 1aa913c
Author: narknon <[email protected]>
Date:   Fri Dec 19 14:55:06 2025 +0000

    chore: update UE submodule

commit 32b76b7
Author: narknon <[email protected]>
Date:   Wed Dec 17 18:49:37 2025 -0500

    feat: update usmap gen for longer fname; over 255 enum values

commit 08b6a81
Author: UE4SS <[email protected]>
Date:   Sun Dec 14 11:08:50 2025 +0100

    fix: Dead GMalloc pointer

    This happened if the GMalloc scan finished so quickly that UE hadn't yet initialized it, leaving us with a pointer to a nullptr value.

    Fixed by replacing 'UnrealStaticGMalloc' with 'GMalloc', and dereferencing GMalloc when access is needed.
Merge remote-tracking branch 'upstream/main'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants