From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robin Farine To: ecos-discuss@sources.redhat.com Subject: [ECOS] string functions assertions Date: Thu, 09 Aug 2001 03:07:00 -0000 Message-id: <86vgjxv9ax.fsf@halftrack.hq.acn-group.ch> X-SW-Source: 2001-08/msg00262.html Hi, The string functions defined in "packages/language/c/libc/string//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. Robin