[CRIU] [PATCH] proc: parse -- Fix length for smaps maj/min parshing
Pavel Emelyanov
xemul at parallels.com
Mon Oct 14 02:20:39 PDT 2013
On 10/11/2013 09:29 PM, Cyrill Gorcunov wrote:
> 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 at openvz.org>
> ---
> proc_parse.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/proc_parse.c b/proc_parse.c
> index e581e58..96d9055 100644
> --- a/proc_parse.c
> +++ b/proc_parse.c
> @@ -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) {
>
applied
More information about the CRIU
mailing list