[LLVMbugs] [Bug 8212] New: [REGRESSION] opt.c from ffmpeg is miscompiled

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 23 04:34:56 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: ismail at namtrac.org
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list