Date: Fri, 11 Nov 2005 19:57:42 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/libexec/rtld-elf rtld.c Message-ID: <200511111957.jABJvg0h029895@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2005-11-11 19:57:42 UTC
FreeBSD src repository
Modified files:
libexec/rtld-elf rtld.c
Log:
Fix a bug in dlinfo(RTLD_DI_SERINFOSIZE) requests. For each search path
we included the length of the path in the returned size but not the length
of the associated Dl_serpath structure. Without this fix, programs
attempting to allocate a structure to hold the search path information
would allocate too small of a buffer and rtld would overrun the buffer
while filling it via a subsequent RTLD_DI_SERINFO request.
Submitted by: "William K. Josephson" wkj at morphisms dot net
Reviewed by: jdp
MFC after: 2 weeks
Revision Changes Path
1.107 +1 -1 src/libexec/rtld-elf/rtld.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511111957.jABJvg0h029895>
