2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

fdinfo: Sanitize types in fdinfo_entry

The namelen is u16, to cover the PATH_MAX u8 is not enough.
The pos is u64, since file offset is that long indeed.
The id is u32 as per previous patch.

Fix printf-s respectively.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-03-25 13:48:22 +04:00
parent af57e42e03
commit 159d3bdfd5
3 changed files with 6 additions and 6 deletions

View File

@@ -46,11 +46,11 @@ enum fd_types {
struct fdinfo_entry {
u8 type;
u8 len;
u16 len;
u16 flags;
u32 pos;
u64 pos;
u64 addr;
u64 id;
u32 id;
u8 name[0];
} __packed;