[LLVMbugs] [Bug 10443] New: scanf input string conversion format

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 22 13:03:18 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10443

           Summary: scanf input string conversion format
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kerolasa at iki.fi
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6917)
 --> (http://llvm.org/bugs/attachment.cgi?id=6917)
int in two lines

A strange clang behaviour found while compiling util-linux scriptreplay. 

$ gcc test1.c 
$ printf "42\n" | ./a.out 
i: 2 blk: 0 nl: 10

$ gcc test2.c 
$ printf "42\n" | ./a.out
i: 2 blk: 0 nl: 10


$ clang test1.c 
$ printf "42\n" | ./a.out
i: 2 blk: 0 nl: 10

$ clang test2.c 
$ printf "42\n" | ./a.out
i: 2 blk: 42 nl: 10

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list