Blame SOURCES/0001-Bug-699214-Fix-out-of-bounds-memset-in-_valist_to_pa.patch

95e96e
From 85f04f4cc32523d6506de091a04d5bb432c9cf2a Mon Sep 17 00:00:00 2001
95e96e
From: Garrett Regier <garrettregier@gmail.com>
95e96e
Date: Fri, 14 Jun 2013 10:30:17 -0700
95e96e
Subject: [PATCH] Bug 699214 - Fix out-of-bounds memset in
95e96e
 _valist_to_parameter_list
95e96e
95e96e
---
95e96e
 libpeas/peas-helpers.c | 2 +-
95e96e
 1 file changed, 1 insertion(+), 1 deletion(-)
95e96e
95e96e
diff --git a/libpeas/peas-helpers.c b/libpeas/peas-helpers.c
95e96e
index 185694c..af30eec 100644
95e96e
--- a/libpeas/peas-helpers.c
95e96e
+++ b/libpeas/peas-helpers.c
95e96e
@@ -110,7 +110,7 @@ _valist_to_parameter_list (GType         iface_type,
95e96e
         {
95e96e
           n_allocated_params += 16;
95e96e
           *params = g_renew (GParameter, *params, n_allocated_params);
95e96e
-          memset (*params + sizeof (GParameter) * (n_allocated_params - 16),
95e96e
+          memset (*params + (n_allocated_params - 16),
95e96e
                   0, sizeof (GParameter) * 16);
95e96e
         }
95e96e
 
95e96e
-- 
95e96e
1.8.2.1
95e96e