[Spice-commits] spice.proto

Frediano Ziglio fziglio at kemper.freedesktop.org
Fri May 13 12:32:44 UTC 2016


 spice.proto |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1c97fea95616686f359451b3889d60ddd3ea0f3b
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri May 13 13:14:29 2016 +0100

    Explicitly specify size of SpiceMsgSmartcardData
    
    Without this, the demarshalling code does not know we expect exactly
    SpiceMsgSmartcardData::length bytes, and has to guess it from the
    amount of data which was sent
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/spice.proto b/spice.proto
index 4a0778d..d21510d 100644
--- a/spice.proto
+++ b/spice.proto
@@ -1334,7 +1334,7 @@ channel SmartcardChannel : BaseChannel {
 	vsc_message_type type;
 	uint32 reader_id;
 	uint32 length;
-	uint8 data[] @end;
+	uint8 data[length] @end @nomarshal;
     } @ctype(SpiceMsgSmartcard) data = 101;
 
  client:


More information about the Spice-commits mailing list