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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to