From: Brian Harring Date: Wed, 22 Sep 2010 14:32:46 +0000 (-0400) Subject: fix an overlapping memcpy identified by valgrind; use memove instead X-Git-Tag: v3.0.0a~891 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7365d22f3c837645db13bae0e80a2efef0b5c07e;p=thirdparty%2Flibarchive.git fix an overlapping memcpy identified by valgrind; use memove instead SVN-Revision: 2684 --- diff --git a/libarchive/archive_write_set_format_iso9660.c b/libarchive/archive_write_set_format_iso9660.c index 2ad60b99f..c2f7f0d43 100644 --- a/libarchive/archive_write_set_format_iso9660.c +++ b/libarchive/archive_write_set_format_iso9660.c @@ -5828,7 +5828,7 @@ isoent_gen_iso9660_identifier(struct archive_write *a, struct isoent *isoent, off ++; extlen --; } - memcpy(p+off, dot, extlen); + memmove(p+off, dot, extlen); p[ffmax] = '\0'; ext_off = off; weight = off;