summaryrefslogtreecommitdiffstats
path: root/include/exec/user
diff options
context:
space:
mode:
authorMarkus Armbruster2014-02-21 17:43:09 +0100
committerAneesh Kumar K.V2014-02-26 07:54:07 +0100
commitd77f7779b4d74354b3444ceb0f93105ced3c26c8 (patch)
tree29588786a2274c0b4a3099eead1b6c5f5942c351 /include/exec/user
parentxilinx: Delete hw/include/xilinx.h (diff)
downloadqemu-d77f7779b4d74354b3444ceb0f93105ced3c26c8.tar.gz
qemu-d77f7779b4d74354b3444ceb0f93105ced3c26c8.tar.xz
qemu-d77f7779b4d74354b3444ceb0f93105ced3c26c8.zip
fsdev: 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. do_readlink() writes it itself. Overruns the buffer when readlink() filled it completely. Fix by reserving space for the null byte when calling readlink(), like we do elsewhere. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions