Date: Fri, 21 Aug 2009 22:55:56 GMT From: Stanislav Sedov <stas@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 167592 for review Message-ID: <200908212255.n7LMtuOD004838@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=167592 Change 167592 by stas@stas_orion on 2009/08/21 22:55:42 - Fix address rounddown. Affected files ... .. //depot/projects/valgrind/coregrind/m_debuginfo/readelf.c#9 edit Differences ... ==== //depot/projects/valgrind/coregrind/m_debuginfo/readelf.c#9 (text+ko) ==== @@ -1262,7 +1262,7 @@ else if (rw_svma_limit == 0 && phdr->p_offset >= di->rw_map_foff && phdr->p_offset < di->rw_map_foff + di->rw_map_size - && phdr->p_offset + (phdr->p_filesz & ~(VKI_PAGE_SIZE - 1)) + && ((phdr->p_offset + phdr->p_filesz) & ~(VKI_PAGE_SIZE - 1)) <= di->rw_map_foff + di->rw_map_size) { rw_svma_base = phdr->p_vaddr; rw_svma_limit = phdr->p_vaddr + phdr->p_memsz;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908212255.n7LMtuOD004838>