You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up from #722/#705. internal/cbm/cbm.c binds the 3-member git_allocator (gmalloc/grealloc/gfree), which upstream introduced in libgit2 1.7.0 — on distros shipping older libgit2 (Debian 12 = 1.5.1, Ubuntu 22.04 = 1.1.0) the positional initializer mis-wires the struct (clang >=16: hard error; older GCC: warning + silently corrupt allocator).
Proposed:
Version floor: #if LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 7 around the binding, or pkg-config --atleast-version=1.7 libgit2 in Makefile.cbm (clear error either way).
Follow-up from #722/#705. internal/cbm/cbm.c binds the 3-member git_allocator (gmalloc/grealloc/gfree), which upstream introduced in libgit2 1.7.0 — on distros shipping older libgit2 (Debian 12 = 1.5.1, Ubuntu 22.04 = 1.1.0) the positional initializer mis-wires the struct (clang >=16: hard error; older GCC: warning + silently corrupt allocator).
Proposed:
#if LIBGIT2_VER_MAJOR == 1 && LIBGIT2_VER_MINOR >= 7around the binding, orpkg-config --atleast-version=1.7 libgit2in Makefile.cbm (clear error either way).