Skip to content

HG Core: prevent hg_core_init() segv on version check error#845

Merged
soumagne merged 1 commit intomercury-hpc:masterfrom
chuckcranor:hg_core_init_fix
Nov 25, 2025
Merged

HG Core: prevent hg_core_init() segv on version check error#845
soumagne merged 1 commit intomercury-hpc:masterfrom
chuckcranor:hg_core_init_fix

Conversation

@chuckcranor
Copy link
Collaborator

Go to "error_free" instead of "error" in the HG_CHECK_SUBSYS_ERROR() check for newer versions to avoid a core dump. hg_core_class is NULL (have not called calloc yet) and "error" assumes it is not. Issue found by Sheng Jiang.

Go to "error_free" instead of "error" in the HG_CHECK_SUBSYS_ERROR()
check for newer versions to avoid a core dump.  hg_core_class is NULL
(have not called calloc yet) and "error" assumes it is not.  Issue
found by Sheng Jiang.
@soumagne soumagne merged commit f3050ff into mercury-hpc:master Nov 25, 2025
21 of 22 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2025
@soumagne
Copy link
Member

Thanks for the fix @chuckcranor !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants