[CRIU] [PATCH] criu: pstree_switch_state -- Fix nil deref on error path

Cyrill Gorcunov gorcunov at gmail.com
Wed Mar 16 07:38:51 PDT 2016


On Wed, Mar 16, 2016 at 05:24:24PM +0300, Pavel Emelyanov wrote:
> On 03/16/2016 11:52 AM, Cyrill Gorcunov wrote:
> > We may enter with @root_item = NULL in case of error
> > handling, so simply bail out.
> 
> Hm... How can this happen?

When we can't allocate pstree item we do "goto err", passing
NULL root item into pstree_switch_state.


More information about the CRIU mailing list