cg: props -- Handle use after free on error path in cgp_handle_props caller
| *** CID 161427: Memory - corruptions (USE_AFTER_FREE) | /criu/cgroup-props.c: 352 in cgp_parse_stream() | 346 | 347 ret = 0; | 348 out: | 349 return ret; | 350 | 351 err_parse: | >>> CID 161427: Memory - corruptions (USE_AFTER_FREE) | >>> Calling "cgp_free" frees pointer "cgp_entry" which has already been freed. | 352 cgp_free(cgp_entry); | 353 ret = -EINVAL; | 354 goto out; | 355 } | 356 | 357 static int cgp_parse_file(char *path) Signed-off-by:Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
Showing
Please
register
or
sign in
to comment