[CRIU] [PATCH] zdtm/maps007: don't use signed values in calculations

Pavel Emelyanov xemul at parallels.com
Mon Dec 8 04:36:47 PST 2014


On 12/03/2014 02:29 PM, Andrey Vagin wrote:
> From: root <root at dhcp-10-30-21-119.sw.ru>
> 
> maps007 segfaults on i386, because "size" is calculated bigger than allowed.
> 
> This occurs when the result of lrand48() * PAGE_SIZE is negative.
> In this case the % operation returns a negative value too, what is unexpected.
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

Applied, thanks.



More information about the CRIU mailing list