From owner-cvs-src-old@FreeBSD.ORG Wed Jul 21 18:34:39 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBF971065677 for ; Wed, 21 Jul 2010 18:34:39 +0000 (UTC) (envelope-from kaiw@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C9A8B8FC21 for ; Wed, 21 Jul 2010 18:34:39 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o6LIYdAj099874 for ; Wed, 21 Jul 2010 18:34:39 GMT (envelope-from kaiw@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o6LIYdKX099871 for cvs-src-old@freebsd.org; Wed, 21 Jul 2010 18:34:39 GMT (envelope-from kaiw@repoman.freebsd.org) Message-Id: <201007211834.o6LIYdKX099871@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kaiw@repoman.freebsd.org using -f From: Kai Wang Date: Wed, 21 Jul 2010 10:25:02 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libelf _libelf.h elf_data.c elf_scn.c libelf_convert.m4 libelf_ehdr.c libelf_phdr.c libelf_xlate.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2010 18:34:39 -0000 kaiw 2010-07-21 10:25:02 UTC FreeBSD src repository Modified files: lib/libelf _libelf.h elf_data.c elf_scn.c libelf_convert.m4 libelf_ehdr.c libelf_phdr.c libelf_xlate.c Log: SVN rev 210338 on 2010-07-21 10:25:02Z by kaiw Perform additional checks when translating between file and memory representations of ELF types. The ELF(3) API allows applications to request a conversion that is `in-place', i.e., with source and destinations data buffers being the same. However, the file and memory sizes of ELF sections that have additional internal structure, such as those of type `Elf_Note', or `Elf_GNU_Hash_Header', can be determined only known after the type-specific headers that comprise the first few words in these sections are read and translated. Pass in the size of destination buffer to type translation routines in "libelf_convert.m4" and have these routines return an error code if the translated data would not fit inside the destination buffer. Obtained from: elftoolchain MFC after: 1 month Revision Changes Path 1.4 +2 -2 src/lib/libelf/_libelf.h 1.4 +9 -4 src/lib/libelf/elf_data.c 1.4 +3 -2 src/lib/libelf/elf_scn.c 1.5 +84 -48 src/lib/libelf/libelf_convert.m4 1.3 +5 -4 src/lib/libelf/libelf_ehdr.c 1.3 +2 -2 src/lib/libelf/libelf_phdr.c 1.4 +9 -3 src/lib/libelf/libelf_xlate.c