[Bug 200193] lang/clang35 does not handle %D formats properly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu May 14 16:13:31 UTC 2015


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 at FreeBSD.org
          Reporter: dim at FreeBSD.org
             Flags: maintainer-feedback?(brooks at FreeBSD.org)
          Assignee: brooks at 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.


More information about the freebsd-ports-bugs mailing list