diff options
| author | ngkaho1234 <ngkaho1234@gmail.com> | 2015-10-25 19:55:07 +0800 |
|---|---|---|
| committer | ngkaho1234 <ngkaho1234@gmail.com> | 2015-10-25 19:55:07 +0800 |
| commit | 6391e9bbdc491cae64f40bb16d7e5b0bf42df570 (patch) | |
| tree | ecba1ea8f7cc8d71a966cab6f94f46e6a25643a1 | |
| parent | 76ccc5426eab8185b7e0bf43a35ebb7bcedda79c (diff) | |
FIX: referencing an invalid ext4_block in case of hash collision
| -rw-r--r-- | lwext4/ext4_dir_idx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lwext4/ext4_dir_idx.c b/lwext4/ext4_dir_idx.c index bece834..d3349c5 100644 --- a/lwext4/ext4_dir_idx.c +++ b/lwext4/ext4_dir_idx.c @@ -506,7 +506,7 @@ static int ext4_dir_dx_next_block(struct ext4_inode_ref *inode_ref, 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; |
