[CRIU] [PATCH] files: don't check uninitialized memory in create_link_remap()
Pavel Emelyanov
xemul at parallels.com
Wed Aug 20 03:03:04 PDT 2014
On 08/19/2014 11:22 PM, Andrey Vagin wrote:
> Look at this strace output:
> 107 linkat(45, "", 1017, "./root/git/orig/criu/test/zdtm/live/static/unlink_fstat03.test (deleted)/link_remap.4", AT_EMPTY_PATH) = -1 ENOENT (No such file or director
>
> It's obvious, that we didn't cat the file name.
>
> Here is an error in calculation of offset for the last symbol.
> The current version of code sets this offset in strlen(),
> but it's actually strlen() - 1.
>
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
Applied, thanks
More information about the CRIU
mailing list