mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
fs/ntfs3: increase CLIENT_REC name field size
This patch increases the size of the CLIENT_REC name field from 32 utf-16 chars to 64 utf-16 chars. It fixes the buffer overflow problem in log_replay() reported by Robbert Morris. Reported-by: <rtm@csail.mit.edu> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
This commit is contained in:
parent
e98266e823
commit
81ad9e67ec
|
|
@ -45,10 +45,10 @@ struct CLIENT_REC {
|
|||
__le16 seq_num; // 0x14:
|
||||
u8 align[6]; // 0x16:
|
||||
__le32 name_bytes; // 0x1C: In bytes.
|
||||
__le16 name[32]; // 0x20: Name of client.
|
||||
__le16 name[64]; // 0x20: Name of client.
|
||||
};
|
||||
|
||||
static_assert(sizeof(struct CLIENT_REC) == 0x60);
|
||||
static_assert(sizeof(struct CLIENT_REC) == 0xa0);
|
||||
|
||||
/* Two copies of these will exist at the beginning of the log file */
|
||||
struct RESTART_AREA {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user