buf_size as the maximum value it can be assigned.
+
+memcpy(buf, offset + (uint8_t *)shr, shr->length);
use length rather than shr->length otherwise length goes unused.
Agreed; the values from the shared page should not be read more than
once, because an uncooperative peer could end up changing them.
--
Daniel De Graaf
National Security Agency
On 03/08/2011 04:04 PM, Jan Kiszka wrote:
> On 2011-03-08 21:29, Daniel De Graaf wrote:
>> Request and support using grant references in backends for
>> the Xen kbdmouse and framebuffer devices.
>
> You should pass your patch through scripts/checkpatch.pl and fix the
>
Request and support using grant references in backends for
the Xen kbdmouse and framebuffer devices.
Signed-off-by: Daniel De Graaf
---
Changes since v1:
Fixed gntdev device dependency missing from device flags.
hw/xenfb.c | 105
Request and support using grant references in backends for
the keyboard and framebuffer.
Signed-off-by: Daniel De Graaf
---
hw/xenfb.c | 103
1 files changed, 76 insertions(+), 27 deletions(-)
diff --git a/hw/xenfb.c b/hw/xenfb.c