shithub: lwext4

Download patch

ref: 6391e9bbdc491cae64f40bb16d7e5b0bf42df570
parent: 76ccc5426eab8185b7e0bf43a35ebb7bcedda79c
author: ngkaho1234 <[email protected]>
date: Sun Oct 25 15:55:07 EDT 2015

FIX: referencing an invalid ext4_block in case of hash collision

--- a/lwext4/ext4_dir_idx.c
+++ b/lwext4/ext4_dir_idx.c
@@ -506,7 +506,7 @@
 		if (rc != EOK)
 			return rc;
 
-		memcpy(&p->block, &p->block, sizeof(block));
+		memcpy(&p->block, &block, sizeof(block));
 		p->entries =
 		    ((struct ext4_directory_dx_node *)block.data)->entries;
 		p->position = p->entries;