From 5865a56bf4e31c5a152e46454367a99c5971ac02 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 14 Jun 2013 01:20:06 +0530 Subject: 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. --- nptl/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'nptl/Makefile') diff --git a/nptl/Makefile b/nptl/Makefile index 7fa991b251..4788bd8035 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -252,6 +252,7 @@ tests = tst-typesizes \ tst-exit1 tst-exit2 tst-exit3 \ tst-stdio1 tst-stdio2 \ tst-stack1 tst-stack2 tst-stack3 tst-pthread-getattr \ + tst-pthread-attr-affinity \ tst-unload \ tst-dlsym1 \ tst-sysconf \ -- cgit v1.2.3-70-g09d2