From: Nathan Scott Date: Tue, 14 May 2002 06:27:01 +0000 (+0000) Subject: Fix a use-after-free bug in xfs_repair code for checking version 1 X-Git-Tag: v2.1.0~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=948ce18;p=thirdparty%2Fxfsprogs-dev.git Fix a use-after-free bug in xfs_repair code for checking version 1 btree-format directories. Found by libefence.a in conjunction with the qa tests on btree[entry].hashval, ARCH_CONVERT); + /* * release/write buffer */ @@ -1140,11 +1147,10 @@ verify_final_da_path(xfs_mount_t *mp, return(0); } /* - * set hashvalue to correctl reflect the now-validated + * set hashvalue to correctly reflect the now-validated * last entry in this block and continue upwards validation */ - cursor->level[this_level].hashval = - INT_GET(node->btree[entry].hashval, ARCH_CONVERT); + cursor->level[this_level].hashval = hashval; return(verify_final_da_path(mp, cursor, this_level)); }