]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC 246035:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 1 Mar 2013 16:18:40 +0000 (16:18 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 1 Mar 2013 16:18:40 +0000 (16:18 +0000)
commit4e654169a9ef990c05749d7bce7992c1888e1ce1
tree11f5db3ff00a05dcbcc7bc184268375c591e1268
parentc7bba045f4a847c4808041070fded03502ea0fb4
MFC 246035:
- 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

git-svn-id: svn://svn.freebsd.org/base/stable/9@247553 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libproc/proc_rtld.c