[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#159633: strncpy on alpha/libc broken



On Sun, 8 Sep 2002, Herbert Xu wrote:

> On Wed, Sep 04, 2002 at 06:33:18PM +0000, Adam Heath wrote:
> > package: libc6.1
> > version: 2.2.5-11.1
> > severity: serious
> >
> > On lully, I have a repeatable segfault being caused by strncpy(which calls
> > __stxncpy).
>
> Here is a patch which should solve this problem.  It still needs to be
> analysed for scheduling.
>
> I don't buy the serious severity though since all it does is cross
> a page boundary in very rare circumstances.  I know it's rare because
> this code has been around for at least five years in both Linux and
> glibc, yet no one has reported this before.

Mathew Wilcox suggested serious.  I was going to go with important.

In any event, Ryan Murrary is the one who brought this to my attention,
and saved the chroot for me.

I'll probably convert dpkg over to using memcpy, as it doesn't need the extra
overhead of checking for \0, in this part of the code.





Reply to: