diff options
| author | Kaho Ng <ngkaho1234@gmail.com> | 2016-06-28 23:02:16 +0800 |
|---|---|---|
| committer | Kaho Ng <ngkaho1234@gmail.com> | 2016-06-28 23:03:36 +0800 |
| commit | a84a1b68d698d9a5cfa5efd55b057df7724996b2 (patch) | |
| tree | 8f58d2fae3265cd3d1bef0045fef708751776d95 /include | |
| parent | 358f3f8f49a50ea3f2032a31eb73f16411fad8a4 (diff) | |
ext4: fix possible access violation when copying name fields
Diffstat (limited to 'include')
| -rw-r--r-- | include/ext4_types.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/ext4_types.h b/include/ext4_types.h index a7170a7..4f934f2 100644 --- a/include/ext4_types.h +++ b/include/ext4_types.h @@ -495,8 +495,7 @@ struct ext4_dir_en { uint8_t name_len; /* Lower 8 bits of name length */ union ext4_dir_en_internal in; - - uint8_t name[EXT4_DIRECTORY_FILENAME_LEN]; /* Entry name */ + uint8_t name[]; /* Entry name */ }; /* Structures for indexed directory */ |
