[CRIU] [PATCH 1/3] zdtm: Get dir of init.pid file

Cyrill Gorcunov gorcunov at gmail.com
Wed Mar 9 01:52:36 PST 2016


On Wed, Mar 09, 2016 at 12:49:35PM +0300, Pavel Emelyanov wrote:
> > 
> > Are you sure that malloc never fail here?
> 
> I'm pretty sure it is. This code runs on host with unlimited resources.

Don't do this please. This is testing library it must _handle_ any
possible internal error, so exit early if malloc failed.


More information about the CRIU mailing list