FreeBSD Bugzilla – Attachment 153532 Details for
Bug 198038
c11 thrd_join function from libstdthreads seg faults.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Check for NULL.
1.patch (text/plain), 387 bytes, created by
Konstantin Belousov
on 2015-02-25 17:50:13 UTC
(
hide
)
Description:
Check for NULL.
Filename:
MIME Type:
Creator:
Konstantin Belousov
Created:
2015-02-25 17:50:13 UTC
Size:
387 bytes
patch
obsolete
>diff --git a/lib/libstdthreads/thrd.c b/lib/libstdthreads/thrd.c >index f0ce55a..b0e36ef 100644 >--- a/lib/libstdthreads/thrd.c >+++ b/lib/libstdthreads/thrd.c >@@ -108,7 +108,8 @@ thrd_join(thrd_t thr, int *res) > > if (pthread_join(thr, &value_ptr) != 0) > return (thrd_error); >- *res = (intptr_t)value_ptr; >+ if (res != NULL) >+ *res = (intptr_t)value_ptr; > return (thrd_success); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 198038
: 153532