This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ #16004] Check overlaps in memcpy_chk.
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: <libc-alpha at sourceware dot org>
- Date: Sat, 5 Oct 2013 19:28:27 +0000
- Subject: Re: [PATCH][BZ #16004] Check overlaps in memcpy_chk.
- Authentication-results: sourceware.org; auth=none
- References: <20131005133423 dot GA8405 at domone>
There are tests for *_chk functions in debug/. If you add a new check you
should also add testcases for it to confirm that the error is caught at
runtime. This does of course require also adding the same check to the
generic version of the function, and in the case of memcpy_chk to the x86
(32-bit) versions as well.
--
Joseph S. Myers
joseph@codesourcery.com