Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Feb 2017 05:39:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 191674] Implementation for "%tu" printf(3) qualifier incorrect on several 32-bit architectures (arm/x86/mips, i.e. when sizeof(ptrdiff_t) != sizeof(*intmax_t))
Message-ID:  <bug-191674-8-pOT8FlTZku@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-191674-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-191674-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D191674

--- Comment #2 from commit-hook@freebsd.org ---
A commit references this bug:

Author: ngie
Date: Tue Feb  7 05:39:01 UTC 2017
New revision: 313379
URL: https://svnweb.freebsd.org/changeset/base/313379

Log:
  Expect :int_within_limits to fail when ptrdiff_t/*intmax_t differ in base
type

  The %t{d,u} (ptrdiff_t) tests fail for the following reasons:
  - ptrdiff_t is by definition int32_t on !LP64 architectures and int64_t on
    LP64 architectures.
  - intmax_t is by definition fixed to int64_t on all architectures.
  - Some of the code in lib/libc/stdio/... is promoting ptrdiff_t to *intma=
x_t
    when parsing/representing the value.

  PR:           191674
  MFC after:    1 week
  Sponsored by: Dell EMC Isilon

Changes:
  head/lib/libc/tests/stdio/printbasic_test.c

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191674-8-pOT8FlTZku>