svn commit: r350608 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Mon Aug 5 19:19:26 UTC 2019


Author: kib
Date: Mon Aug  5 19:19:25 2019
New Revision: 350608
URL: https://svnweb.freebsd.org/changeset/base/350608

Log:
  Fix mis-merge.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/kern/imgact_elf.c

Modified: head/sys/kern/imgact_elf.c
==============================================================================
--- head/sys/kern/imgact_elf.c	Mon Aug  5 19:16:33 2019	(r350607)
+++ head/sys/kern/imgact_elf.c	Mon Aug  5 19:19:25 2019	(r350608)
@@ -2741,7 +2741,6 @@ __elfN(stackgap)(struct image_params *imgp, u_long *st
 	if (pct > 50)
 		pct = 50;
 	range = imgp->eff_stack_sz * pct / 100;
-	range *= pct;
 	arc4rand(&rbase, sizeof(rbase), 0);
 	gap = rbase % range;
 	gap &= ~(sizeof(u_long) - 1);


More information about the svn-src-all mailing list