lkml.org 
[lkml]   [2011]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch v2] x86: kvm: x86: fix information leak to userland
On 07/26/2011 08:05 PM, Alexander Graf wrote:
> struct kvm_pit_state2 {
> struct kvm_pit_channel_state channels[3];
> __u32 flags;
> __u32 reserved[9];
> };
>
> So memset(&ps->reserved) would give you the a __u32 **, no? Same goes for all the other array sets in here. Or am I understanding some C logic wrong? :)
>

An address of an array is the array itself.

--
error compiling committee.c: too many arguments to function



\
 
 \ /
  Last update: 2011-07-26 19:27    [W:0.045 / U:1.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site