From b3e91e9179a85320d6e4aa63780cb653ff6a5a0e Mon Sep 17 00:00:00 2001 From: rpj Date: Wed, 18 Jul 2001 07:41:47 +0000 Subject: Fix potential NULL pointer dereferences. Contributed by - "Scott McCaskill" * mutex.c (pthread_mutexattr_init): Return ENOMEM immediately and don't dereference the NULL pointer if calloc fails. (pthread_mutexattr_getpshared): Don't dereference a pointer that is possibly NULL. * barrier.c (pthread_barrierattr_init): Likewise (pthread_barrierattr_getpshared): Don't dereference a pointer that is possibly NULL. * condvar.c (pthread_condattr_getpshared): Don't dereference a pointer that is possibly NULL. --- ChangeLog | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 4786fb2..7e2b920 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,17 @@ 2001-07-18 Ross Johnson + Contributed by - "Scott McCaskill" + * mutex.c (pthread_mutexattr_init): Return ENOMEM immediately and don't dereference the NULL pointer if calloc fails. - - "Scott McCaskill" + (pthread_mutexattr_getpshared): Don't dereference + a pointer that is possibly NULL. + * barrier.c (pthread_barrierattr_init): Likewise + (pthread_barrierattr_getpshared): Don't dereference + a pointer that is possibly NULL. + * condvar.c (pthread_condattr_getpshared): Don't dereference + a pointer that is possibly NULL. 2001-07-10 Ross Johnson -- cgit v1.2.3