Wilco Dijkstra 54ba8bcd42 Fix tcache count maximum (BZ #24531)
The tcache counts[] array is a char, which has a very small range and thus
may overflow.  When setting tcache_count tunable, there is no overflow check.
However the tunable must not be larger than the maximum value of the tcache
counts[] array, otherwise it can overflow when filling the tcache.

	[BZ #24531]
	* malloc/malloc.c (MAX_TCACHE_COUNT): New define.
	(do_set_tcache_count): Only update if count is small enough.
	* manual/tunables.texi (glibc.malloc.tcache_count): Document max value.

(cherry picked from commit 5ad533e8e65092be962e414e0417112c65d154fb)
2019-05-22 15:00:49 +01:00
..
1999-10-04 22:59:43 +00:00
2019-05-22 15:00:49 +01:00
2014-01-02 09:40:10 +01:00
2018-12-12 13:22:42 +01:00
2018-12-12 13:22:42 +01:00
2007-12-16 22:57:57 +00:00