This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: string functions assertions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]