Skip to content
Snippets Groups Projects
Commit ae49d147 authored by Mark Adler's avatar Mark Adler
Browse files

Avoid an undefined behavior of memcpy() in gzappend().

parent 3c46f5dd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -137,7 +137,7 @@ local void rotate(unsigned char *list, unsigned len, unsigned rot)
/* do simple left shift by one */
if (rot == 1) {
tmp = *list;
memcpy(list, list + 1, len - 1);
memmove(list, list + 1, len - 1);
*last = tmp;
return;
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment