diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-01-27 07:52:26 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-01-27 07:55:17 +0000 |
commit | e4e81d1b04308e8fca49211412d0ae4a47cdfe3b (patch) | |
tree | c17541057cc6d43ac9d63e994d846cbf207b7bcb /main/sipsak/musl-fix-strcasestr.patch | |
parent | 5a679b880f979e4fce37612c51b3f342b18deba3 (diff) | |
download | aports-e4e81d1b04308e8fca49211412d0ae4a47cdfe3b.tar.bz2 aports-e4e81d1b04308e8fca49211412d0ae4a47cdfe3b.tar.xz |
main/sipsak: fix segfault due to use of strcasestr without _GNU_SOURCE
Also fix off-by-one errors while at it which was found:
https://github.com/sipwise/sipsak/commit/bf9d2417a1e73697873a5f5099dac4bb3eb4b2d9
ref #3750
Diffstat (limited to 'main/sipsak/musl-fix-strcasestr.patch')
-rw-r--r-- | main/sipsak/musl-fix-strcasestr.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/sipsak/musl-fix-strcasestr.patch b/main/sipsak/musl-fix-strcasestr.patch new file mode 100644 index 0000000000..b5f11cbbaf --- /dev/null +++ b/main/sipsak/musl-fix-strcasestr.patch @@ -0,0 +1,16 @@ +This fixes segfault: +http://bugs.alpinelinux.org/issues/3750 + +diff --git a/sipsak.h b/sipsak.h +index 8f5d283..f9b1b49 100644 +--- a/sipsak.h ++++ b/sipsak.h +@@ -57,7 +57,7 @@ + #endif + + #ifdef HAVE_STRCASESTR +-# define __USE_GNU ++# define _GNU_SOURCE + # define STRCASESTR(s1,s2) strcasestr(s1,s2) + #else + # define STRCASESTR(s1,s2) strstr(s1,s2) |