[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Margarida Sequeira <margarida_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Fri, 30 May 2003 18:53:01 -0600 (MDT)
Module name: src
Changes by: margarida_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2003/05/30 18:53:01
libexec/ld.so : Tag: OPENBSD_3_3 sod.c
gnu/usr.bin/ld/rtld: Tag: OPENBSD_3_3 rtld.c
Pull patch from -current:
Fix by millert@
Previously, ld.so would use a single page for mapping the hints file
and then, if that was not big enough, map the rest of it contiguously.
However, there is no guarantee that the address space after the
first mmap has not already been used by something else.
Instead, just fstat the file and map up to st_size. Also reorganized
the code a tad and added some sanity checks for st_size.
Problem tracked down by dhartmei@ and mickey@; drahn@ OK.
Visit your host, monkey.org