Chen Gang gang.chen.5...@gmail.com writes:
'ctx-fs_root' + 'path'/'fullname.data' may be larger than PATH_MAX, so
need use snprintf() instead of sprintf() just like another area have done in
9pfs.
Signed-off-by: Chen Gang gang.chen.5...@gmail.com
---
hw/9pfs/virtio-9p-local.c | 7 ---
On 03/03/2014 04:34 PM, Markus Armbruster wrote:
Chen Gang gang.chen.5...@gmail.com writes:
'ctx-fs_root' + 'path'/'fullname.data' may be larger than PATH_MAX, so
need use snprintf() instead of sprintf() just like another area have done in
9pfs.
Signed-off-by: Chen Gang
Chen Gang gang.chen.5...@gmail.com writes:
On 03/03/2014 04:34 PM, Markus Armbruster wrote:
Chen Gang gang.chen.5...@gmail.com writes:
'ctx-fs_root' + 'path'/'fullname.data' may be larger than PATH_MAX, so
need use snprintf() instead of sprintf() just like another area have done
in 9pfs.
Chen Gang gang.chen.5...@gmail.com writes:
On 03/03/2014 04:34 PM, Markus Armbruster wrote:
Chen Gang gang.chen.5...@gmail.com writes:
'ctx-fs_root' + 'path'/'fullname.data' may be larger than PATH_MAX, so
need use snprintf() instead of sprintf() just like another area have done
in 9pfs.
Chen Gang gang.chen.5...@gmail.com writes:
'ctx-fs_root' + 'path'/'fullname.data' may be larger than PATH_MAX, so
need use snprintf() instead of sprintf() just like another area have done in
9pfs.
Signed-off-by: Chen Gang gang.chen.5...@gmail.com
Will take care of Markus feedback.
On 03/03/2014 10:42 PM, Markus Armbruster wrote:
Chen Gang gang.chen.5...@gmail.com writes:
On 03/03/2014 04:34 PM, Markus Armbruster wrote:
Turns a buffer overrun bug into a truncation bug. The next commit fixes
truncation bugs including this one. Would be nice to spell this out in
the
'ctx-fs_root' + 'path'/'fullname.data' may be larger than PATH_MAX, so
need use snprintf() instead of sprintf() just like another area have done in
9pfs.
Signed-off-by: Chen Gang gang.chen.5...@gmail.com
---
hw/9pfs/virtio-9p-local.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)