Skip to content

git(wrapper): fix a segmentation fault on Windows/ARM64#47

Merged
dscho merged 1 commit intogit-for-windows:mainfrom
dscho:fix-segfault-in-git-wrapper-on-arm64
Mar 7, 2021
Merged

git(wrapper): fix a segmentation fault on Windows/ARM64#47
dscho merged 1 commit intogit-for-windows:mainfrom
dscho:fix-segfault-in-git-wrapper-on-arm64

Conversation

@dscho
Copy link
Member

@dscho dscho commented Mar 6, 2021

When calling cmd\git.exe, we now really want msystem_bin not to be NULL.

This partially fixes git-for-windows/git#3083.

/cc @dennisameling

When calling `cmd\git.exe`, we now really want `msystem_bin` _not_ to be
`NULL`.

This partially fixes git-for-windows/git#3083.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@ghost

This comment has been minimized.

@ghost

This comment has been minimized.

Copy link

@dennisameling dennisameling left a comment

Choose a reason for hiding this comment

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

Can confirm this fixes the segfault indeed, thanks a lot @dscho! 🚀

Before applying this PR:

C:\Users\denni>where git
C:\Program Files (x86)\Git\cmd\git.exe

C:\Users\denni>git version
(CRASH)

After applying this PR:

C:\Users\denni>where git
C:\Program Files (x86)\Git\cmd\git.exe

C:\Users\denni>git version
git version 2.31.0.GIT

@dscho dscho merged commit ecc47f6 into git-for-windows:main Mar 7, 2021
@dscho dscho deleted the fix-segfault-in-git-wrapper-on-arm64 branch March 8, 2021 13:26
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.

cmd\git.exe crashing when ARM64 folder is present in Git installation (git-wrapper)

2 participants