Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 2015 16:13:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 200193] lang/clang35 does not handle %D formats properly
Message-ID:  <bug-200193-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 200193
           Summary: lang/clang35 does not handle %D formats properly
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(brooks@FreeBSD.org)
          Assignee: brooks@FreeBSD.org

Minimal example from http://llvm.org/PR23512:

void foo(int, const char *, ...) __attribute__((__format__(__printf__, 2, 3)));

void bar(const unsigned char *p, unsigned short len)
{
  foo(-1, " %*D", len, p, "-");
}

when compiled with clang 3.5.x with the -fformat-extensions flag, this either
shows garbage in the warning, or even crashes.

-- 
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-200193-13>