Markus Armbruster 13665a2d2f vfio: Fix overrun after readlink() fills buffer completely
readlink() returns the number of bytes written to the buffer, and it
doesn't write a terminating null byte.  vfio_init() writes it itself.
Overruns the buffer when readlink() filled it completely.

Fix by treating readlink() filling the buffer completely as error,
like we do in pci-assign.c's assign_failed_examine().

Spotted by Coverity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2014-02-26 10:28:36 -07:00
..
2014-02-02 22:09:16 +05:30
2014-02-21 15:04:58 +00:00
2014-02-25 10:50:11 +00:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2014-02-24 13:00:52 +01:00
2014-02-14 16:22:32 +01:00
2014-02-14 16:22:31 +01:00
2014-02-14 16:22:32 +01:00
2014-02-21 15:04:58 +00:00
2014-02-14 16:22:31 +01:00
2014-02-26 14:54:45 +10:00
2013-09-03 12:31:07 -05:00
2013-07-29 21:07:01 +02:00
2013-08-22 19:10:27 +02:00
2014-02-20 15:25:05 +00:00