Initialize for libcap
This commit is contained in:
commit
da06b0df06
9 changed files with 812 additions and 0 deletions
12
CVE-2023-2602.patch
Normal file
12
CVE-2023-2602.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff -Nurp libcap-2.63-orig/psx/psx.c libcap-2.63/psx/psx.c
|
||||
--- libcap-2.63-orig/psx/psx.c 2022-01-24 01:30:38.000000000 +0100
|
||||
+++ libcap-2.63/psx/psx.c 2023-05-16 16:05:14.436726170 +0200
|
||||
@@ -492,7 +492,7 @@ int __wrap_pthread_create(pthread_t *thr
|
||||
pthread_sigmask(SIG_BLOCK, &sigbit, NULL);
|
||||
|
||||
int ret = __real_pthread_create(thread, attr, _psx_start_fn, starter);
|
||||
- if (ret == -1) {
|
||||
+ if (ret > 0) {
|
||||
psx_new_state(_PSX_CREATE, _PSX_IDLE);
|
||||
memset(starter, 0, sizeof(*starter));
|
||||
free(starter);
|
Loading…
Add table
Add a link
Reference in a new issue