]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Compute the correct size to reallocate when doubling the size of the
authorjhb <jhb@FreeBSD.org>
Mon, 28 Jan 2013 15:48:31 +0000 (15:48 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 28 Jan 2013 15:48:31 +0000 (15:48 +0000)
commit7756bef786978bd5d07c05b55bc8428454d6837d
tree463132b6a908ec2e5a240a7065cfd9d8ee4e62e3
parent74295506311b9507b710b2729ba15e2fa5a611c8
- Compute the correct size to reallocate when doubling the size of the
  array of loaded objects to avoid a buffer overrun.
- Use reallocf() to avoid leaking memory if the realloc() fails.

PR: kern/175648
Submitted by: yuri@rawbw.com (1)
MFC after: 1 week
lib/libproc/proc_rtld.c