From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199612192145.OAA10269@huntley.cs.arizona.edu> Date: Thu, 19 Dec 1996 14:45:51 -0700 From: David Mosberger-Tang Subject: more memchr() woes I'm sorry to say that there seems to be another memchr() bug that occasionally crashes sendmail (and it is likely to affect other programs that use vfprintf). The problem is that memchr was written with the assumption that the entire memory area being searched is valid. The Linux man page is quiet on this issue, but the OSF/1 man-page states explicitly that memchr() should search the memory sequentially (which is a major bummer since its limits optimizations that use readahead). This is normally not a problem, but in vfprintf there is a call to memchr() that searches for the ASCII NUL terminator (which is known to be present) in a memory area that is not necessarily all mapped. Anyhow, I'll try to look into the problem asap, but in the meantime, it's something to watch out for. --david -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com