From nobody Wed Jul 05 13:07:55 2023 X-Original-To: dev-commits-src-all@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 4Qx0MJ3LmFz4mDmF; Wed, 5 Jul 2023 13:07:56 +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 4Qx0MJ04wMz3CHp; Wed, 5 Jul 2023 13:07:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688562476; 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=jIM4jcVE1QBjgTPAImZhBmsBPu9pCuuaPrFocbcwTy4=; b=QZ69ZMtBN2hUJ3K5G05hCV6MeGbDACCt3AWDYbDnB0XgQSUDY6RiE2T6J02hEVp9EInhVu bVvvbGSFIMhER35GAYkxSj96HaF4SvdRsata2i5HyIvqiQ/NvMlMZfibKPyFWgNNV9zErK 3gq4zQ1ANxFrizI8XtqgrAPGliBUvNvcK8dgCjN+nk6Pk1IuBwAwTmXo/PYmeiUKGsEUeK J51v+Y9iph5E4iZE/wwPenxDnsP2L/J/WavEVcy4WKYFBoTdHgkP6GAtDtu5GQPukKD4e1 K++3qAkKetXKyqclne8zibFUoByBUV3qAKjbH7OG//CVB9n1SotyC+7xbKAq4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688562476; 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=jIM4jcVE1QBjgTPAImZhBmsBPu9pCuuaPrFocbcwTy4=; b=nhGUuZk3USdarCaG14XOKnYnK3C4vMgPuA0dQ23qtTVL0ixEoPEWaJu8Ex3UM9mL2rTCsz g54l9aAujATFXVlLG/7+It7uSfJVTXuXu7wk9xm0LrqvBb8fwUbiCqvRcz2vffQ0r1pB7h Ncov5VSJe0Gx3MzhJ9BGkvKUjxK5+nUDYT+EbvtYTQyXC9W4+estT+kCjuNc9YoPqupXdA uuftYiGmFCZ5YIEQog84N+G44W+CfZu6fOy/CKgorN/6VkVMMkAwA7ygf8D999VjXeQI0k 72ifWI9sFThfuU688w+EOxogA4CUp35I/DJ7/snKasLAyNQaqJPkvD7SQvdxoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688562476; a=rsa-sha256; cv=none; b=lmeTA8nAJFhnPuKXmdb48hL/y6SsUotcSw06Snq/gAtpFLgX9PXO/pOPafcnoNgTxNLBSh GZ9hG62x5GjGcj5B6PP6UoL0s+KHbDUV/jrO+dg8kErjYpVSmz0RjQp1bubyQo5x9rSWsc tt4JCGekDx1pu1GR8DO9BJq98Yy11+KpdwX4BCGqaZa+7Iel27/k2+L4/1rsAO9Qdeu9qB Cu1rwGRWbzyrh0Eb2Az1Ro7ycqX3kKHbnQqeFzXKlR0z4pKJIroWeCkx2f4R44MTLnG7ZD zxRj0fIHH9r3jNui639mM+Bp2WIBB/dFEtqkBHAjBH/cyhjD23ll50qLKMCLpw== 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 4Qx0MH6HZ0zGcb; Wed, 5 Jul 2023 13:07:55 +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 365D7ttR071265; Wed, 5 Jul 2023 13:07:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 365D7t5r071264; Wed, 5 Jul 2023 13:07:55 GMT (envelope-from git) Date: Wed, 5 Jul 2023 13:07:55 GMT Message-Id: <202307051307.365D7t5r071264@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 44ee4e90a3a6 - stable/13 - ctfconvert: Integer encoding types are unsigned List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 44ee4e90a3a6d68fe1ef7684fe60f8b9a60d4ae2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=44ee4e90a3a6d68fe1ef7684fe60f8b9a60d4ae2 commit 44ee4e90a3a6d68fe1ef7684fe60f8b9a60d4ae2 Author: Mark Johnston AuthorDate: 2023-06-06 17:28:02 +0000 Commit: Mark Johnston CommitDate: 2023-07-05 13:07:06 +0000 ctfconvert: Integer encoding types are unsigned Before this change, encodings in the user-defined range were being sign-extended. MFC after: 1 week Sponsored by: Innovate UK (cherry picked from commit 258a0d760aa8b42899a000e30f610f900a402556) --- cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c index 9c422fb58fa1..861fda0931af 100644 --- a/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c +++ b/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c @@ -1367,7 +1367,7 @@ static const fp_size_map_t fp_encodings[] = { }; static uint_t -die_base_type2enc(dwarf_t *dw, Dwarf_Off off, Dwarf_Signed enc, size_t sz) +die_base_type2enc(dwarf_t *dw, Dwarf_Off off, Dwarf_Unsigned enc, size_t sz) { const fp_size_map_t *map = fp_encodings; uint_t szidx = dw->dw_ptrsz == sizeof (uint64_t); @@ -1398,9 +1398,9 @@ static intr_t * die_base_from_dwarf(dwarf_t *dw, Dwarf_Die base, Dwarf_Off off, size_t sz) { intr_t *intr = xcalloc(sizeof (intr_t)); - Dwarf_Signed enc; + Dwarf_Unsigned enc; - (void) die_signed(dw, base, DW_AT_encoding, &enc, DW_ATTR_REQ); + (void) die_unsigned(dw, base, DW_AT_encoding, &enc, DW_ATTR_REQ); switch (enc) { case DW_ATE_unsigned: