Date: Sat, 4 Sep 2010 12:06:09 +0000 (UTC) From: Kai Wang <kaiw@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/cddl/contrib/opensolaris/tools/ctf/cvt output.c src/lib/libelf elf_data.c elf_getdata.3 Message-ID: <201009041207.o84C7uVr069589@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kaiw 2010-09-04 12:06:09 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) cddl/contrib/opensolaris/tools/ctf/cvt output.c lib/libelf elf_data.c elf_getdata.3 Log: SVN rev 212199 on 2010-09-04 12:06:09Z 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.2.2 +1 -1 src/cddl/contrib/opensolaris/tools/ctf/cvt/output.c 1.2.2.1 +25 -18 src/lib/libelf/elf_data.c 1.2.2.1 +27 -1 src/lib/libelf/elf_getdata.3
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009041207.o84C7uVr069589>