aboutsummaryrefslogtreecommitdiff
path: root/nptl/ChangeLog
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-06-14 01:20:06 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-06-14 01:20:06 +0530
commit5865a56bf4e31c5a152e46454367a99c5971ac02 (patch)
tree0a0ee5d430ef178bced7a0718e62427cd1da6b1b /nptl/ChangeLog
parentc204ab284bc3ef492f5a5201bd6131032bfd471a (diff)
downloadglibc-5865a56bf4e31c5a152e46454367a99c5971ac02.tar
glibc-5865a56bf4e31c5a152e46454367a99c5971ac02.tar.gz
glibc-5865a56bf4e31c5a152e46454367a99c5971ac02.tar.bz2
glibc-5865a56bf4e31c5a152e46454367a99c5971ac02.zip
Avoid access beyond memory bounds in pthread_attr_getaffinity_np
Resolves BZ #15618. pthread_attr_getaffinity_np may write beyond bounds of the input cpuset buffer if the size of the input buffer is smaller than the buffer present in the input pthread attributes. Fix is to copy to the extent of the minimum of the source and the destination.
Diffstat (limited to 'nptl/ChangeLog')
-rw-r--r--nptl/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 8fb473f3ea..64b674c678 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,13 @@
+2013-06-13 Siddhesh Poyarekar <siddhesh@redhat.com>
+ Carlos O'Donell <carlos@redhat.com>
+
+ [BZ #15618]
+ * tst-pthread-attr-affinity: New test case.
+ * Makefile (tests): Add it.
+ * sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c
+ (__pthread_attr_getaffinity_new): Copy minimum of source and
+ destination sizes to avoid a buffer overrun.
+
2013-06-10 Carlos O'Donell <carlos@redhat.com>
* sysdeps/unix/sysv/linux/i386/lowlevellock.h