Date: Thu, 3 Dec 2020 04:22:51 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r556884 - in branches/2020Q4/shells/ksh2020: . files Message-ID: <202012030422.0B34Mpjf038292@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cy Date: Thu Dec 3 04:22:51 2020 New Revision: 556884 URL: https://svnweb.freebsd.org/changeset/ports/556884 Log: MFH: r556844 Don't reassign the "len" variable and compute the exact spaces needed. PR: 251275 Submitted by: Romeo Rajomalaza <endian.sign _ gmail.com> Reported by: Romeo Rajomalaza <endian.sign _ gmail.com> Approved by: ports-secteam (fluffy) Added: branches/2020Q4/shells/ksh2020/files/patch-src_cmd_ksh93_edit_pcomplete.c - copied unchanged from r556844, head/shells/ksh2020/files/patch-src_cmd_ksh93_edit_pcomplete.c Modified: branches/2020Q4/shells/ksh2020/Makefile Directory Properties: branches/2020Q4/ (props changed) Modified: branches/2020Q4/shells/ksh2020/Makefile ============================================================================== --- branches/2020Q4/shells/ksh2020/Makefile Thu Dec 3 01:58:45 2020 (r556883) +++ branches/2020Q4/shells/ksh2020/Makefile Thu Dec 3 04:22:51 2020 (r556884) @@ -2,6 +2,7 @@ PORTNAME= ksh2020 PORTVERSION= 2020 +PORTREVISION= 1 CATEGORIES= shells MAINTAINER= cy@FreeBSD.org Copied: branches/2020Q4/shells/ksh2020/files/patch-src_cmd_ksh93_edit_pcomplete.c (from r556844, head/shells/ksh2020/files/patch-src_cmd_ksh93_edit_pcomplete.c) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2020Q4/shells/ksh2020/files/patch-src_cmd_ksh93_edit_pcomplete.c Thu Dec 3 04:22:51 2020 (r556884, copy of r556844, head/shells/ksh2020/files/patch-src_cmd_ksh93_edit_pcomplete.c) @@ -0,0 +1,12 @@ +--- src/cmd/ksh93/edit/pcomplete.c.orig 2020-11-20 14:41:10.427589000 +0000 ++++ src/cmd/ksh93/edit/pcomplete.c 2020-11-20 14:47:28.958973000 +0000 +@@ -338,8 +338,7 @@ + } + if (complete) { + // Reserved space on stack and try again. +- len = 3; +- tlen = (c + 1) * sizeof(char *) + len * c + 1024; ++ tlen += (c + 1) * sizeof(char *) + (plen + slen + 1) * c; + stkseek(shp->stk, tlen); + complete = 2; + av = (char **)stkptr(shp->stk, 0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012030422.0B34Mpjf038292>