[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use memmove instead of strcpy
From: |
Chet Ramey |
Subject: |
Re: [PATCH] Use memmove instead of strcpy |
Date: |
Mon, 9 Jul 2018 09:52:25 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 |
On 7/7/18 1:25 AM, Bernhard M. Wiedemann wrote:
> In https://bugzilla.opensuse.org/show_bug.cgi?id=1100488
> we found that depending on the build machine, bash-4.4's bash.html would
> contain the string Bahh instead of Bash
>
> strcpy can cause corruption when working on overlapping strings
> so we use memmove instead that handles this case correctly
Thanks for the report.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/