bug-glibc
[Top][All Lists]
Advanced

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

RE: [Linux-ia64] IA64 strncpy in 2.2.4-30 - bug and patch


From: Chen, Kenneth W
Subject: RE: [Linux-ia64] IA64 strncpy in 2.2.4-30 - bug and patch
Date: Tue, 19 Nov 2002 10:35:44 -0800

Here is the updated patch against current glibc cvs strncpy.S v1.9.

There are two hunks in this patch.  The first hunk initialize ar.ec, ec is not 
guaranteed to be zero upon function entry, although most likely it will be 
zero.  But such assumption is functionally broken.

The second hunk fixes the seg fault in recovery 4 section.  The case of seg 
fault is that when src length ends exactly at a page boundary, and there are no 
mapping after that page.  In recovery 4, it is trying to access an invalid 
address due to earlier loop that src pointer got post incremented pass beyond 
current page.

- Ken


-----Original Message-----
From: Randolph Chung [mailto:address@hidden
Sent: Tuesday, November 19, 2002 8:19 AM
To: Chen, Kenneth W
Cc: address@hidden; address@hidden
Subject: Re: [Linux-ia64] IA64 strncpy in 2.2.4-30 - bug and patch


In reference to a message from Chen, Kenneth W, dated Nov 07:
> We found more bugs in the code, and here is an updated patch to fix them.
> Note this patch supercedes the one I sent yesterday.
> 
> Also attached is the test program we used to verify the fix.

Is there an updated version of this that applies against glibc cvs? Or
is the one Jakub/Roland checked in sufficient (it looks more like the first
version you posted)

thanks,
randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/

Attachment: strncpy.fix.cvs_v1.9
Description: strncpy.fix.cvs_v1.9


reply via email to

[Prev in Thread] Current Thread [Next in Thread]