diff options
author | stef <l0ls0fo2i@ctrlc.hu> | 2014-08-06 00:03:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-08-06 09:39:01 +0000 |
commit | f76185cfcaa939d21d4c9915aec5d2882fff2e20 (patch) | |
tree | 948e6ee2e5b2396506d2976879cf2b6e753bb075 /main/pcsc-lite/musl-stacksize.patch | |
parent | 6657a503a5104ab1f920546affb5a414cddeca75 (diff) | |
download | aports-f76185cfcaa939d21d4c9915aec5d2882fff2e20.tar.bz2 aports-f76185cfcaa939d21d4c9915aec5d2882fff2e20.tar.xz |
main/pcsc-lite: fix segfault because too small musl stack
Diffstat (limited to 'main/pcsc-lite/musl-stacksize.patch')
-rw-r--r-- | main/pcsc-lite/musl-stacksize.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/main/pcsc-lite/musl-stacksize.patch b/main/pcsc-lite/musl-stacksize.patch new file mode 100644 index 0000000000..e38c25ac1c --- /dev/null +++ b/main/pcsc-lite/musl-stacksize.patch @@ -0,0 +1,17 @@ +diff -urw src/pcsc-lite-1.8.11/src/utils.c src.cur/src/utils.c +--- src/pcsc-lite-1.8.11/src/utils.c 2014-02-14 16:15:44.000000000 +0000 ++++ src.cur/src/utils.c 2014-08-05 23:46:09.240000000 +0000 +@@ -161,6 +161,13 @@ + if (ret) + return ret; + ++ ret = pthread_attr_setstacksize(&attr, 0x400000); ++ if (ret) ++ { ++ (void)pthread_attr_destroy(&attr); ++ return ret; ++ } ++ + ret = pthread_attr_setdetachstate(&attr, + attributes & THREAD_ATTR_DETACHED ? PTHREAD_CREATE_DETACHED : PTHREAD_CREATE_JOINABLE); + if (ret) |