pfg 2030aa27d2 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
..
2017-07-09 16:57:24 +00:00
2017-02-28 23:42:47 +00:00
2017-03-11 00:08:11 +00:00
2017-05-23 09:29:05 +00:00
2017-02-14 13:35:59 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-07-10 14:59:21 +00:00