This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: string functions assertions
- To: Robin Farine <acnrf at dial dot eunet dot ch>
- Subject: Re: [ECOS] string functions assertions
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 10 Aug 2001 18:24:33 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <86vgjxv9ax.fsf@halftrack.hq.acn-group.ch>
Robin Farine wrote:
>
> Hi,
>
> The string functions defined in "packages/language/c/libc/string/<ver>/src" that
> take a length argument such as memmove(...) fail when called with a length of 0
> if compiled with CYGPKG_INFRA_DEBUG enabled. I suppose that it's legal to do
> that so I added some length tests to those functions (these tests should get
> optimized out when compiling with assertions disabled). The attached patch
> contains the changes.
Yep, fine. And your stdio read patch too. I've checked these in. I'll write
ChangeLog entries for these this time, but you can still write the cvt()
changelog :-).
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine