From nobody Sat Feb 10 23:56:40 2024 X-Original-To: bugs@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 4TXSLJ5ql1z58tpg for ; Sat, 10 Feb 2024 23:56:40 +0000 (UTC) (envelope-from bugzilla-noreply@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 4TXSLJ1pjTz4rN2 for ; Sat, 10 Feb 2024 23:56:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707609400; a=rsa-sha256; cv=none; b=KDDjHdgedCUxWFpmwYPzpAz/GJaCu0a6g8EHL2c29mifkXKVZmiVQfsSs7nm0brC1S08Zf kwKCJj8cBjZIzeTVbI2iTXgxc8O3RkDgacsY2WKM2jiwen2E8LblSe+Wu6LXoxp1/sA58+ f+WxbmXvx7yMT9kL57cBCglOkBykTp7FXIThFZVhZ7rfgzr3WV1YEfvkY0ZmpAhiMX7ZSy vs2M/M68ql7iUu37W+0X70N9KCy8F1P/Gn7fQNK4VMwOPvKo8DBAqimX4/SGJgDvgJMrIY bM3118f1vlgN3gsjJhoqxlbcD4KUifc0aMj5F/gCjiPKsyw2bqaBy02hI9I11g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707609400; 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=0dwgKauNwVpFm6iynHrgkEu5pLIwF0PXcZRVMKR1u1w=; b=K/jdhptfP3k96FXXA1eiXlcdkSnXfTW93OCD9vQ1Jjn3BFqEe5fLrd34Y4hJIhvOEUmmIP sbiQOlseuyx8Be7LSN6Noybs71vRhxTz2gOW2UPc/Vr2BVoeMFSZ4LX7K62Tgx+q2zC62b aHKjfdfN+1bwGtlBJ/r463RHq2KrR0xY2eop3qygJ2OVKLEnSY4L/19WJPNzxcom635GQV QB2Z8zmmFPXQmfh6D3UmJM3Chw6R1AMLuv++7T1mW6PA9qMotje/6onem0abLOfpSXEpBD iClyOkXUfxdxR0amaYQHT7LfNzxV7PnC6dHd4zIZ/eHXIhkFCrSIZPVa8bwJIQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4TXSLJ0tW2zc4C for ; Sat, 10 Feb 2024 23:56:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 41ANuevP079764 for ; Sat, 10 Feb 2024 23:56:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 41ANuex0079762 for bugs@FreeBSD.org; Sat, 10 Feb 2024 23:56:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 276960] /usr/include/*_asn1.h have unexpected target-dependent differences Date: Sat, 10 Feb 2024 23:56:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276960 Bug ID: 276960 Summary: /usr/include/*_asn1.h have unexpected target-dependent differences Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org Compare /usr/include/*_asn1.h on e.g. i386 and amd64. One example file: ref13-amd64% grep pCPath /usr/include/rfc2459_asn1.h=20 pCPathLenConstraint INTEGER (0..-1) OPTIONAL, ref13-i386% grep pCPath /usr/include/rfc2459_asn1.h pCPathLenConstraint INTEGER (0..2147483647) OPTIONAL, Looking at the source file crypto/heimdal/lib/asn1/rfc2459.asn1: pCPathLenConstraint INTEGER (0..4294967295) OPTIONAL, -- really MAX 4294967295 is 2^32-1, 0xffffffff, and does not fit in a signed 32-bit int. I believe this originates from contrib/flex/src/regex.c: n =3D (int) strtol (s, endptr, base); i386 has 32-bit long. There strtol truncates 4294967295 to INT_MAX (2147483= 647) and sets errno to ERANGE, which is then ignored. amd64 has 64-bit long, into which 4294967295 fits. This becomes -1 when cas= t to int. --=20 You are receiving this mail because: You are the assignee for the bug.=