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
..
2013-11-05 17:47:29 +01:00
2013-11-05 17:47:30 +01:00
2013-04-15 15:16:01 +02:00
2013-07-29 21:06:05 +02:00
2013-07-29 21:06:59 +02:00
2013-07-29 21:06:59 +02:00