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

           Summary: [REGRESSION] opt.c from ffmpeg is miscompiled
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


This is a last 24h regresssion. opt.c is miscompiled causing parameter parsing
errors with ffmpeg. Works with -O1 and broken with -O2 and above.

Problematic part is (according to my gdb session):


4831             for(i=0; i<sizeof(buf)-1 && val[i] && val[i]!='+' &&
val[i]!='-'; i++)
4832                 buf[i]= val[i];
4833             buf[i]=0;
4834 


val is "simple" here and buf ends up being "si" instead. 

Preprocessed file attached.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to