Kuriakose Kuruvilla wrote:
> Hi J?rgen
> 
> This is because of the strncpy() in string_unquote() at mdb_lex.1:699
> <http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/mdb/common/mdb/mdb_lex.l#699>.
> 
> 
> The source and destination overlap but the manpage for strncpy.3c says...
>   If
>   copying  takes  place  between  objects  that  overlap,  the
>   behavior of strcpy(), strncpy(), and strlcpy() is undefined.

Sounds like issues with the recent amd64 optimization of strcpy that were
discussed a few weeks ago in opensolaris-code, including CR 6914012.

See the "amd64 & strcpy() on SXCE NV 129 vs. POSIX.1-2008" thread on
http://mail.opensolaris.org/pipermail/opensolaris-code/2009-December/thread.html
and
http://mail.opensolaris.org/pipermail/opensolaris-code/2010-January/thread.html

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering

Reply via email to