mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 11:04:35 +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:
parent
af57e42e03
commit
159d3bdfd5
3 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue