<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 12f36406eb4f1457db61082ec7b0bd8dd6530814 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adam=20Engstr=C3=B6m?= &lt;adaengst@gmail.com&gt;
Date: Sat, 20 Dec 2014 17:58:00 +0100
Subject: [PATCH 2/4] bfdio: Invalid size of memset

---
 bfd/bfdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index ce92781..9d7fc6f 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -577,7 +577,7 @@ memory_bstat (bfd *abfd, struct stat *statbuf)
 {
   struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd-&gt;iostream;
 
-  memset (statbuf, 0, sizeof (statbuf));
+  memset (statbuf, 0, sizeof (*statbuf));
   statbuf-&gt;st_size = bim-&gt;size;
 
   return 0;
-- 
2.1.2

</pre></body></html>