mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
proc: parse -- Fix length for smaps maj/min parshing
Otherwise | Error (proc_parse.c:227): Can't parse: 555555554000-555555577000 r-xp 00000000 b6:d2f61 133545 /sbin/init Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
14a7aff288
commit
2503fd7da5
@@ -220,7 +220,7 @@ int parse_smaps(pid_t pid, struct vm_area_list *vma_area_list, bool use_map_file
|
||||
goto err;
|
||||
|
||||
memset(file_path, 0, 6);
|
||||
num = sscanf(buf, "%lx-%lx %c%c%c%c %lx %02x:%02x %lu %5s",
|
||||
num = sscanf(buf, "%lx-%lx %c%c%c%c %lx %x:%x %lu %5s",
|
||||
&start, &end, &r, &w, &x, &s, &pgoff, &dev_maj,
|
||||
&dev_min, &ino, file_path);
|
||||
if (num < 10) {
|
||||
|
Reference in New Issue
Block a user