Re: [xf86-video-qxl v6] Enable smartcard support for XSpice.

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

 



2. What happens if h->length == 0 ?

Note that I believe that could only occur in the case of a malicious or
buggy packet.  By inspection, I believe the code will all function
correctly; passing a 0 length atr along.

Is this to the card (hardware) or back? if to, can't this be used by a
driver to wakeup a card (i.e. dropping it will have adverse affects)?

I believe that the VSC_ATR is sent at only one place, from the gtk client to the remote side (I believe it's both for power on and reset). But my inspection suggests the code path (through vreader_power_on) always retrieves the atr before sending it. So I'm pretty sure that the atr is always non zero length.

Cheers,

Jeremy
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]