mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-24 10:17:45 +02:00
Ext4Pkg: Move EXT4_NAME_MAX definition to Ext4Disk.h
Constant EXT4_NAME_MAX is related to EXT4_DIR_ENTRY FS structure, so it should be placed into Ext4Disk.h header Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
This commit is contained in:
parent
0c1c5a6ce1
commit
fbb8595120
@ -397,12 +397,14 @@ typedef struct _Ext4Inode {
|
||||
UINT32 i_projid;
|
||||
} EXT4_INODE;
|
||||
|
||||
#define EXT4_NAME_MAX 255
|
||||
|
||||
typedef struct {
|
||||
UINT32 inode;
|
||||
UINT16 rec_len;
|
||||
UINT8 name_len;
|
||||
UINT8 file_type;
|
||||
CHAR8 name[255];
|
||||
CHAR8 name[EXT4_NAME_MAX];
|
||||
} EXT4_DIR_ENTRY;
|
||||
|
||||
#define EXT4_MIN_DIR_ENTRY_LEN 8
|
||||
|
@ -32,7 +32,6 @@
|
||||
#include "Ext4Disk.h"
|
||||
|
||||
#define SYMLOOP_MAX 8
|
||||
#define EXT4_NAME_MAX 255
|
||||
//
|
||||
// We need to specify path length limit for security purposes, to prevent possible
|
||||
// overflows and dead-loop conditions. Originally this limit is absent in FS design,
|
||||
|
Loading…
x
Reference in New Issue
Block a user