From 8fa0645ef103db98257f8409bdd8e98d1f42d851 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Wed, 23 Jan 2019 21:16:05 -0500 Subject: [PATCH] Fix signature of git_libgit2_opts On most platforms this doesn't make a difference, but the PowerPC ABI uses the signature to decide whether or not to allocate a parameter save area. Without this, the caller does not, but the callee assumes it's there causing the callee to overwrite critical parts of the caller stack. Fixes #27007 --- stdlib/LibGit2/src/LibGit2.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/LibGit2/src/LibGit2.jl b/stdlib/LibGit2/src/LibGit2.jl index b54e9cbb298ee..3e864ff2220c4 100644 --- a/stdlib/LibGit2/src/LibGit2.jl +++ b/stdlib/LibGit2/src/LibGit2.jl @@ -1003,7 +1003,7 @@ function set_ssl_cert_locations(cert_loc) cert_dir = isdir(cert_loc) ? cert_loc : Cstring(C_NULL) cert_file == C_NULL && cert_dir == C_NULL && return @check ccall((:git_libgit2_opts, :libgit2), Cint, - (Cint, Cstring, Cstring), + (Cint, Cstring...), Cint(Consts.SET_SSL_CERT_LOCATIONS), cert_file, cert_dir) end