From nobody Sun Aug 20 05:36:58 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RT49k6BdRz4qlPy; Sun, 20 Aug 2023 05:36:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RT49k5TBZz4YPb; Sun, 20 Aug 2023 05:36:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692509818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YtaR+JRYKW1YV8zTlvQRJncVYExp16HOG8LZbvxNxZ4=; b=SM+4OkF9T/1wAH8p9tNrq6NQS9iCIWoMtkIAjy1UUDU47sAVF+SUkOM4njwVd7N1wMkksM OQxR/YWiLGERuK7yshxoxpEZ7+yEA+vwJ4R22Kr5HI/9A5bk2Jxvcb1OwXSVlJXaygqFe2 jJCIqze7fnzRsOHUZW+VKeZ/9hEvPftgm5iFewwgN3hkbbGmY/CTIEYVJtkX1ESyDgfk7M ADsuinWOfQ3972TKS2ggZtYH9zby1kcmEO+6j+SsV4kg55u+3aCyjsZ31/kUY7k58sRG+Q N6ZPjIbWdI+mmlcaf6Jd+fCkOGpRfLIbx+Wicr3+6i2cdc/tqQqe09sTsG4p8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692509818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=YtaR+JRYKW1YV8zTlvQRJncVYExp16HOG8LZbvxNxZ4=; b=ogAU5053Y010M3LToR8EVQMopTL3wWeRwjJ0B3Gx2SILYTjrUyNxagA9zpK27069c5wYMn 0Qwe64FkOhr/8Wnhac73diCBOPNCBO8+qiE/rqU9b7HgNjZUuZnXwuT3j1o9xJnGdY3gey 4BkXhej7dpGWt+u8GJXkAbjQqgcr5ULgV9mF3cmFwZBi8m7FxlTxCmZaFZun4Vi3jN14aI Kjf8WGavUiMkCMkmV0JpFAS0ueiZa06wONYcknnTRVUEdRBgLPz6I4l/7x4tbzn33RUTOB 4N2rXzdN7mlbv+b3DMiil25VGvW1gQHlOkUJenILQPsmp9/1feTXcbukAotYvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692509818; a=rsa-sha256; cv=none; b=k8D1I5fVz35uyHDsHYwoEyjrey9/EcJ8NUqXDX56TJws3UVIlFQBI/7iTPMx0T3hFHtIDr 4Wsnxd4NLlLdlTwAlYuYInbuRczpUd6REQJCW1EcJT1ZuE37WlIjsaaoqOoYQUoa3JOLSf nDilZ76JF3oCOH0ji8qxETiM/MHMTBHF0zLIOOvHBjiWoJu6L0VvNa+VJgfj1eRYnYVOks 9pONGF8hltI/yBVGfrqQ/O/FRGNTeubHDCr6itDTen+xiHhsPj52QZ2gb/8VMfXc9stb9Q y54dll//xg2K/yERA+sQNs2vo+t55go5Ig4i+MRIdhCYgE3sxvoLbf8UenNyPA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RT49k4H0rzCdr; Sun, 20 Aug 2023 05:36:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37K5awsi050025; Sun, 20 Aug 2023 05:36:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37K5awCa050022; Sun, 20 Aug 2023 05:36:58 GMT (envelope-from git) Date: Sun, 20 Aug 2023 05:36:58 GMT Message-Id: <202308200536.37K5awCa050022@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 79e6ffb6951b - main - netbsd-tests: libc: fix strvis(3) overflow tests List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 79e6ffb6951bd75a92326fabadd48e87ee0aed96 Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=79e6ffb6951bd75a92326fabadd48e87ee0aed96 commit 79e6ffb6951bd75a92326fabadd48e87ee0aed96 Author: Kyle Evans AuthorDate: 2023-08-20 05:28:08 +0000 Commit: Kyle Evans CommitDate: 2023-08-20 05:36:23 +0000 netbsd-tests: libc: fix strvis(3) overflow tests These tests weren't run on x86 until CI grabbed them. It turns out, there's a sign extension bug that surfaces on x86 with char being a signed type. NetBSD unearthed this when they took and improved the patch, so just grab their solution until we get to merging in the latest version of the test. Reported by: CI (via ngie) Fixes: 2f489a509e61 ("libc: fix some overflow scenarios in vis(3)") --- contrib/netbsd-tests/lib/libc/gen/t_vis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/netbsd-tests/lib/libc/gen/t_vis.c b/contrib/netbsd-tests/lib/libc/gen/t_vis.c index 80800bf8b31f..8d0e7a50b329 100644 --- a/contrib/netbsd-tests/lib/libc/gen/t_vis.c +++ b/contrib/netbsd-tests/lib/libc/gen/t_vis.c @@ -176,7 +176,7 @@ ATF_TC_BODY(strvis_locale, tc) #endif /* VIS_NOLOCALE */ #ifdef __FreeBSD__ -#define STRVIS_OVERFLOW_MARKER 0xff /* Arbitrary */ +#define STRVIS_OVERFLOW_MARKER ((char)0xff) /* Arbitrary */ ATF_TC(strvis_overflow_mb); ATF_TC_HEAD(strvis_overflow_mb, tc)