From owner-cvs-src-old@FreeBSD.ORG Sat Sep 4 12:07:18 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 2BA1410656F6 for ; Sat, 4 Sep 2010 12:07:18 +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 187DA8FC24 for ; Sat, 4 Sep 2010 12:07:18 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o84C7Hct069528 for ; Sat, 4 Sep 2010 12:07:17 GMT (envelope-from kaiw@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o84C7H4P069527 for cvs-src-old@freebsd.org; Sat, 4 Sep 2010 12:07:17 GMT (envelope-from kaiw@repoman.freebsd.org) Message-Id: <201009041207.o84C7H4P069527@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kaiw@repoman.freebsd.org using -f From: Kai Wang Date: Sat, 4 Sep 2010 12:06:02 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/cddl/contrib/opensolaris/tools/ctf/cvt output.c src/lib/libelf elf_data.c elf_getdata.3 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: Sat, 04 Sep 2010 12:07:18 -0000 kaiw 2010-09-04 12:06:02 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) cddl/contrib/opensolaris/tools/ctf/cvt output.c lib/libelf elf_data.c elf_getdata.3 Log: SVN rev 212198 on 2010-09-04 12:06:02Z by kaiw MFC r210324, r210438. r210324: - Correctly handle sections of type SHT_NOBITS. For these sections: - elf_getdata() and elf_rawdata() should return an "Elf_Data" structure that has its "d_buf" member set to NULL and "d_size" member set to the nominal 'size' of the section. - Update the manual page for these functions. - Fix a memory leak in an error handling path inside elf_getdata(). - Use _libelf_allocate_data() in elf_newdata() for consistency. r210438: (np) Catch up with r210324. d_buf will be NULL for SHT_NOBITS sections, do not attempt to copy from it in that case. Revision Changes Path 1.2.4.1 +1 -1 src/cddl/contrib/opensolaris/tools/ctf/cvt/output.c 1.2.10.2 +25 -18 src/lib/libelf/elf_data.c 1.2.10.3 +27 -1 src/lib/libelf/elf_getdata.3