From 948ce18a7f91da68ec1e3abaaed3c2b1bb4c41cc Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 14 May 2002 06:27:01 +0000 Subject: [PATCH] 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)); } -- 2.39.5