[CRIU] [PATCH] proc_parse: don't read an uninitialized pointer
Andrey Vagin
avagin at openvz.org
Thu Jun 9 14:10:27 PDT 2016
From: Andrew Vagin <avagin at virtuozzo.com>
CID 161665 (#1 of 1): Uninitialized pointer read (UNINIT)
14. uninit_use: Using uninitialized value vma.
Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
criu/proc_parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/proc_parse.c b/criu/proc_parse.c
index ef86152..3677e4a 100644
--- a/criu/proc_parse.c
+++ b/criu/proc_parse.c
@@ -423,7 +423,7 @@ int parse_self_maps_lite(struct vm_area_list *vms)
prev = vma;
}
- pr_debug("Parsed %"PRIx64"-%"PRIx64" vma\n", vma->e->start, vma->e->end);
+ pr_debug("Parsed %"PRIx64"-%"PRIx64" vma\n", prev->e->start, prev->e->end);
}
fclose(maps);
--
2.7.4
More information about the CRIU
mailing list