Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: David Mosberger-Tang <davidm@cs.arizona.edu>
Subject: more memchr() woes
Date: Thu, 19 Dec 1996 14:45:51 -0700	[thread overview]
Message-ID: <199612192145.OAA10269@huntley.cs.arizona.edu> (raw)

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

             reply	other threads:[~1996-12-19 21:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-19 21:45 David Mosberger-Tang [this message]
  -- strict thread matches above, loose matches on Subject: below --
1996-12-19 23:33 more memchr() woes Uncle George
1996-12-28 15:25 Uncle George
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox