Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+2 -2
+2 -2
fs/ntfs3/fslog.c
··· 45 45 __le16 seq_num; // 0x14: 46 46 u8 align[6]; // 0x16: 47 47 __le32 name_bytes; // 0x1C: In bytes. 48 - __le16 name[32]; // 0x20: Name of client. 48 + __le16 name[64]; // 0x20: Name of client. 49 49 }; 50 50 51 - static_assert(sizeof(struct CLIENT_REC) == 0x60); 51 + static_assert(sizeof(struct CLIENT_REC) == 0xa0); 52 52 53 53 /* Two copies of these will exist at the beginning of the log file */ 54 54 struct RESTART_AREA {