Blame SOURCES/0012-Fix-memory-corruption-when-calling-migrate_to_uri.patch

18fc82
From f2cd3c2e87d0f4193a4200210c4e5cdaa6f26b14 Mon Sep 17 00:00:00 2001
18fc82
From: Hao Liu <hliu@redhat.com>
18fc82
Date: Tue, 9 Dec 2014 13:09:27 +0800
18fc82
Subject: [PATCH] Fix memory corruption when calling migrate_to_uri
18fc82
18fc82
The variable `nparams` didn't change accordingly when adding a new
18fc82
parameter in commit b2cecf73.
18fc82
18fc82
This patch fixes https://bugzilla.redhat.com/show_bug.cgi?id=1171938
18fc82
18fc82
Signed-off-by: Hao Liu <hliu@redhat.com>
18fc82
(cherry picked from commit 3c5059eab19c612614848d7033bb7e5a0e310779)
18fc82
---
18fc82
 Virt.xs | 2 +-
18fc82
 1 file changed, 1 insertion(+), 1 deletion(-)
18fc82
18fc82
diff --git a/Virt.xs b/Virt.xs
18fc82
index 839d9a6..091a8e5 100644
18fc82
--- a/Virt.xs
18fc82
+++ b/Virt.xs
18fc82
@@ -4301,7 +4301,7 @@ _migrate_to_uri(dom, desturi, newparams, flags=0)
18fc82
      virTypedParameter *params;
18fc82
      int nparams;
18fc82
   PPCODE:
18fc82
-     nparams = 5;
18fc82
+     nparams = 6;
18fc82
      Newx(params, nparams, virTypedParameter);
18fc82
 
18fc82
      strncpy(params[0].field, VIR_MIGRATE_PARAM_URI,