[Spice-devel] [PATCH] Explicitly specify size of SpiceMsgSmartcardData
Christophe Fergeau
cfergeau at redhat.com
Fri May 13 12:30:50 UTC 2016
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
On Fri, May 13, 2016 at 01:14:56PM +0100, Frediano Ziglio wrote:
> 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>
> ---
> spice.proto | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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:
> --
> 2.7.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160513/8a7f78b0/attachment.sig>
More information about the Spice-devel
mailing list