Skip to content

Commit 956c942

Browse files
committed
unixodbc: fix segfault
Signed-off-by: botantony <[email protected]>
1 parent c730c14 commit 956c942

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Formula/u/unixodbc.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ class Unixodbc < Formula
2929
"include/sqltypes.h", "include/sqlucode.h"
3030
link_overwrite "lib/libodbc.a", "lib/libodbc.so"
3131

32+
# Fix segfault where `dst` is passed to `memcpy` instead of `*dst`
33+
# https://github.com/lurcher/unixODBC/commit/97add92e08ed42102234055d55e098e1c8e5c1c0
34+
patch do
35+
url "https://github.com/lurcher/unixODBC/commit/97add92e08ed42102234055d55e098e1c8e5c1c0.patch?full_index=1"
36+
sha256 "1cc28bbc3fcc4fc170c7b806ca9c1f69c9ecb0c599c7a7a7598da202eaa797e5"
37+
end
38+
3239
def install
3340
system "./configure", "--disable-debug",
3441
"--disable-dependency-tracking",

0 commit comments

Comments
 (0)