diff options
| author | Markus Armbruster <armbru@redhat.com> | 2014-02-26 10:28:36 -0700 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2014-02-26 10:28:36 -0700 |
| commit | 13665a2d2f675341e73618fcd7f9d36b6c68b509 (patch) | |
| tree | 18b0db6388a85905cb0075c45e68c42331c48264 /scripts/qapi-types.py | |
| parent | d5001cf787ad0514839a81d0f2e771e01e076e21 (diff) | |
| download | focaccia-qemu-13665a2d2f675341e73618fcd7f9d36b6c68b509.tar.gz focaccia-qemu-13665a2d2f675341e73618fcd7f9d36b6c68b509.zip | |
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>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions