[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [Patch 2/2] Compile errors with gcc 4.8



On Thu, 7 Feb 2013, Jan Beulich wrote:

On 06.02.13 at 21:37, M A Young <m.a.young@xxxxxxxxxxxx> wrote:
@@ -264,7 +264,7 @@
               return -1;
       }

-       memset(buf,0,sizeof(buf));
+       memset(buf,0,sizeof(*buf));

While everything else looks right, this one for sure is wrong - buf
is an array, and hence sizeof(*buf) would clear just the first array
element.

Yes, I now agree it is wrong (I found the other example in that file and assumed this one was broken as well). I am attaching a patch that fixes the other cases.

        Michael Young

Attachment: gcc48.build.2.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.