Searched hist:fdd1ab6ad5c27a1564a1c73045908736b228458b (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/ui/ |
H A D | vnc.h | diff fdd1ab6ad5c27a1564a1c73045908736b228458b Thu Aug 06 09:35:55 CDT 2015 Daniel P. Berrange <berrange@redhat.com> ui: fix return type for VNC I/O functions to be ssize_t
Various VNC server I/O functions return 'long' and then also pass this to a method accepting 'int'. All these should be ssize_t to match the signature of read/write APIs and thus avoid potential for integer truncation / wraparound.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
|
H A D | vnc.c | diff fdd1ab6ad5c27a1564a1c73045908736b228458b Thu Aug 06 09:35:55 CDT 2015 Daniel P. Berrange <berrange@redhat.com> ui: fix return type for VNC I/O functions to be ssize_t
Various VNC server I/O functions return 'long' and then also pass this to a method accepting 'int'. All these should be ssize_t to match the signature of read/write APIs and thus avoid potential for integer truncation / wraparound.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
|