From: Bobi Jam Date: Thu, 17 Jan 2013 03:41:15 +0000 (+0800) Subject: LU-2627 e2fsck: check_symlink() SIGSEGV X-Git-Tag: v1.42.6.wc2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9312871cce9d82d217bc6edc3a943f6e034a99f2;p=tools%2Fe2fsprogs.git LU-2627 e2fsck: check_symlink() SIGSEGV Since e2fsck_pass1_check_symlink()-> check_symlink(ctx, NULL, ino, inode, buf), we should use 'ino' instead of 'pctx->ino' in check_symlink(). Signed-off-by: Bobi Jam Change-Id: If9c16f96d0655d5a886ef607f1f47ced6176f8d8 --- diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index 2689bc0..724b0ae 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -187,7 +187,7 @@ static int check_symlink(e2fsck_t ctx, struct problem_context *pctx, if (inode->i_size > ctx->fs->blocksize) return 0; - if (ext2fs_extent_open2(ctx->fs, pctx->ino, inode, &handle)) + if (ext2fs_extent_open2(ctx->fs, ino, inode, &handle)) return 0; if (ext2fs_extent_get_info(handle, &info) || (info.num_entries != 1) ||