From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 2 Dec 2020 16:23:19 -0500 Subject: [PATCH 08/10] setexpr: Correct buffer overflow bug and enable tests In-Reply-To: <20201101211544.3579850-9-sjg@chromium.org> References: <20201101211544.3579850-1-sjg@chromium.org> <20201101211544.3579850-9-sjg@chromium.org> Message-ID: <20201202212319.GC32272@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Nov 01, 2020 at 02:15:42PM -0700, Simon Glass wrote: > At present when more than one substitution is made this function > overwrites its buffers. Fix this bug and update the tests now that they > can pass. > > Also update the debug code to show all substrings, since at present it > omits the final one. > > Fixes: 855f18ea0e6 ("setexpr: add regex substring matching and substitution") > Signed-off-by: Simon Glass Applied to u-boot/next, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: