summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorrpj <rpj>2001-07-18 07:41:47 +0000
committerrpj <rpj>2001-07-18 07:41:47 +0000
commitb3e91e9179a85320d6e4aa63780cb653ff6a5a0e (patch)
tree90a054b0533f577c43cd7d76fd24f4690d913786 /ChangeLog
parent024172be698e329e76c95e32c29ca5023fc036ac (diff)
Fix potential NULL pointer dereferences.
Contributed by - "Scott McCaskill" <scott@magruder.org> * 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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog10
1 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4786fb2..7e2b920 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,17 @@
2001-07-18 Ross Johnson <rpj@setup1.ise.canberra.edu.au>
+ Contributed by - "Scott McCaskill" <scott@magruder.org>
+
* mutex.c (pthread_mutexattr_init): Return ENOMEM
immediately and don't dereference the NULL pointer
if calloc fails.
- - "Scott McCaskill" <scott@magruder.org>
+ (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 <rpj@setup1.ise.canberra.edu.au>