[BZ #15859] Fix memory leak in _dl_map_object_deps

This commit is contained in:
Vinitha Vijayan 2013-09-21 17:51:58 +02:00 committed by Ondřej Bílka
parent 5bb43a4319
commit f5f4e7b48b
3 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2013-09-15 Vinitha Vijayan <vinitha.vijayann@gmail.com>
[BZ #15859]
* elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
2013-09-20 Andreas Schwab <schwab@linux-m68k.org>
* include/string.h (__ffs): Declare as hidden.

9
NEWS
View File

@ -9,10 +9,11 @@ Version 2.19
* The following bugs are resolved with this release:
13985. 14155, 14699, 15427, 15522, 15531, 15532, 15640, 15736, 15748,
15749, 15797, 15844, 15849, 15855, 15856, 15857, 15867, 15886, 15887,
15890, 15892, 15893, 15895, 15897, 15905, 15909, 15921, 15939, 15966,
15963.
13985, 14155, 14699, 15427, 15522, 15531, 15532, 15640, 15736, 15748,
15749, 15797, 15844, 15849, 15855, 15856, 15857, 15859, 15867, 15886,
15887, 15890, 15892, 15893, 15895, 15897, 15905, 15909, 15921, 15939,
15887, 15890, 15892, 15893, 15895, 15897, 15905, 15909, 15921, 15939,
15963, 15966.
* CVE-2013-4237 The readdir_r function could write more than NAME_MAX bytes
to the d_name member of struct dirent, or omit the terminating NUL

View File

@ -595,7 +595,6 @@ Filters not supported with LD_TRACE_PRELINKING"));
if (list[i]->l_reserved)
{
/* Need to allocate new array of relocation dependencies. */
struct link_map_reldeps *l_reldeps;
l_reldeps = malloc (sizeof (*l_reldeps)
+ map->l_reldepsmax
* sizeof (struct link_map *));