Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14300 > unrolled thread

Re: [PATCH] Use memmove instead of strcpy

Started byChet Ramey <chet.ramey@case.edu>
First post2018-07-09 09:52 -0400
Last post2018-07-09 09:52 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] Use memmove instead of strcpy Chet Ramey <chet.ramey@case.edu> - 2018-07-09 09:52 -0400

#14300 — Re: [PATCH] Use memmove instead of strcpy

FromChet Ramey <chet.ramey@case.edu>
Date2018-07-09 09:52 -0400
SubjectRe: [PATCH] Use memmove instead of strcpy
Message-ID<mailman.3306.1531144346.1292.bug-bash@gnu.org>
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/

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web