Date: Wed, 23 Dec 2015 22:12:41 GMT From: clord@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r295788 - soc2015/clord/head/sys/contrib/ficl Message-ID: <201512232212.tBNMCfV1054972@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: clord Date: Wed Dec 23 22:12:41 2015 New Revision: 295788 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=295788 Log: Fix ficlInstructionPick bug. Pick instructions from 0, not 1. Credit to Toomas Soome from the Illumos project. Obtained from: http://cr.illumos.org/~webrev/tsoome/ficl/usr/src/common/ficl/vm.c.patch Modified: soc2015/clord/head/sys/contrib/ficl/vm.c Modified: soc2015/clord/head/sys/contrib/ficl/vm.c ============================================================================== --- soc2015/clord/head/sys/contrib/ficl/vm.c Wed Dec 23 22:09:02 2015 (r295787) +++ soc2015/clord/head/sys/contrib/ficl/vm.c Wed Dec 23 22:12:41 2015 (r295788) @@ -723,8 +723,8 @@ i = dataTop->i; if (i < 0) continue; - CHECK_STACK(i + 1, i + 2); - *dataTop = dataTop[-i]; + CHECK_STACK(i + 2, i + 3); + *dataTop = dataTop[-i-1]; continue; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512232212.tBNMCfV1054972>