Commit eaa442f2 authored by Sergei Golovan's avatar Sergei Golovan Committed by Sergei Golovan

* Added patch which replaces memcpy my memmove for copying possibly

    overlapping memory area, thanks to Per Cederqvist (closes: #728663).
parent ad54e670
expect (5.45-5) UNRELEASED; urgency=low
expect (5.45-5) unstable; urgency=low
* NOT RELEASED YET
* Added patch which replaces memcpy my memmove for copying possibly
overlapping memory area, thanks to Per Cederqvist (closes: #728663).
-- Sergei Golovan <sgolovan@debian.org> Sun, 06 Oct 2013 09:19:00 +0400
-- Sergei Golovan <sgolovan@debian.org> Mon, 04 Nov 2013 08:28:43 +0400
expect (5.45-4) unstable; urgency=low
......
Author: Per Cederqvist <ceder@lysator.liu.se>
Description: Fix for copying overlapping memory area.
Last-Modified: Mon, 04 Nov 2013 08:23:51 +0400
Bug-Debian: http://bugs.debian.org/728663
Bug: https://sourceforge.net/p/expect/patches/16/
--- a/expect.c
+++ b/expect.c
@@ -1094,7 +1094,7 @@
/* shift remaining elements down */
/* but only if there are any left */
if (i+1 != ecmd->ecd.count) {
- memcpy(&ecmd->ecd.cases[i],
+ memmove(&ecmd->ecd.cases[i],
&ecmd->ecd.cases[i+1],
((ecmd->ecd.count - i) - 1) *
sizeof(struct exp_cmd_descriptor *));
......@@ -11,3 +11,4 @@
16-logfile.patch
18-non-linux.patch
22-segfault-with-stubs.patch
23-memmove.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment