freebsd-nq/lib/libthr/thread
Pedro F. Giffuni 1c9158aabe libthr: check for possible overflow in the pthread_barrier_init() count.
Following up on r320900, where the check for negative count values was
removed, add a check to prevent integer overflow. This is to account that
b_count, b_waiters but most importantly the total number of threads in
the system are signed values.

Discussed with:	kib
MFC after:	2 weeks
2017-07-15 15:00:13 +00:00
..
Makefile.inc Implement process-shared locks support for libthr.so.3, without 2016-02-28 17:52:33 +00:00
thr_affinity.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_attr.c libthr: fix warnings at WARNS=6 2017-05-19 13:04:05 +00:00
thr_autoinit.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_barrier.c libthr: check for possible overflow in the pthread_barrier_init() count. 2017-07-15 15:00:13 +00:00
thr_barrierattr.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_cancel.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_clean.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_concurrency.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_cond.c Do not leak curthread->inact_mtx when cancelling in pthread_cond_wait(3). 2016-12-06 17:13:17 +00:00
thr_condattr.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_create.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_ctrdtr.c Merge all the copies of _tcb_ctor and _tcb_dtor. 2015-01-21 16:41:05 +00:00
thr_detach.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_equal.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_event.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_exit.c libthr: fix warnings from GCC when WARNS=6 2017-05-23 16:12:50 +00:00
thr_fork.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_getcpuclockid.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_getprio.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_getschedparam.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_getthreadid_np.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_info.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_init.c Remove old spinlock_debug code from libc 2017-05-20 17:32:01 +00:00
thr_join.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_kern.c libthr: fix warnings from GCC when WARNS=6 2017-05-23 16:12:50 +00:00
thr_kill.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_list.c libthr: fix warnings from GCC when WARNS=6 2017-05-23 16:12:50 +00:00
thr_main_np.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_multi_np.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_mutex.c libthr: fix warnings from GCC when WARNS=6 2017-05-23 16:12:50 +00:00
thr_mutexattr.c Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
thr_once.c Remove empty initializer for the once facility. It was not needed 2016-07-27 15:14:11 +00:00
thr_printf.c libthr: _thread_vprintf: Enhance support for %p, %#x 2016-06-01 16:11:09 +00:00
thr_private.h libthr: fix warnings at WARNS=6 2017-05-26 15:56:28 +00:00
thr_pshared.c Lock pshared_lock shared around fork, to ensure that the COW snapshot 2016-03-21 06:52:35 +00:00
thr_pspinlock.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_resume_np.c Do not leak THR_FLAGS_SUSPENDED from the previous suspend/resume 2016-05-05 10:20:22 +00:00
thr_rtld.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_rwlock.c libthr: change CHECK_AND_INIT_RWLOCK to an inline function 2017-05-20 17:30:48 +00:00
thr_rwlockattr.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_self.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_sem.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_setprio.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_setschedparam.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_sig.c libthr: fix style in previous commit 2017-05-26 15:53:27 +00:00
thr_single_np.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_sleepq.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_spec.c libthr: fix warnings at WARNS=6 2017-05-19 13:04:05 +00:00
thr_spinlock.c Remove old spinlock_debug code from libc 2017-05-20 17:32:01 +00:00
thr_stack.c libthr: Use CLI flags instead of pragmas to disable warnings 2017-05-20 17:33:47 +00:00
thr_suspend_np.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_switch_np.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00
thr_symbols.c libthr: Use CLI flags instead of pragmas to disable warnings 2017-05-20 17:33:47 +00:00
thr_syscalls.c Add clock_nanosleep() 2017-03-19 00:51:12 +00:00
thr_umtx.c libthr: fix warnings at WARNS=6 2017-05-19 13:04:05 +00:00
thr_umtx.h libthr: fix warnings at WARNS=6 2017-05-19 13:04:05 +00:00
thr_yield.c Use __FBSDID() for .c files from lib/libthr/thread. 2016-04-08 11:15:26 +00:00