[ECOS] string functions assertions

Robin Farine acnrf@dial.eunet.ch
Thu Aug 9 03:07:00 GMT 2001


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.

Robin


More information about the Ecos-discuss mailing list