https://bugs.freedesktop.org/show_bug.cgi?id=62918

          Priority: medium
            Bug ID: 62918
                CC: [email protected]
          Assignee: [email protected]
           Summary: webrtc-audio-processing: analog_agc.c:1651:24:
                    warning: iteration 10u invokes undefined behavior
        QA Contact: [email protected]
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: [email protected]
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: misc
           Product: PulseAudio

Gcc 4.8 warns:

analog_agc.c: In function 'WebRtcAgc_Init':
analog_agc.c:1651:24: warning: iteration 10u invokes undefined behavior
[-Waggressive-loop-optimizations]
         stt->env[0][i] = 0;
                        ^
analog_agc.c:1649:5: note: containing loop
     for (i = 0; i < 20; i++)
     ^


The warning is correct:


   for (i = 0; i < 20; i++) 
    {    
        stt->env[0][i] = 0; --> WebRtc_Word32  env[2][10]; 

    }    

It is iterating waay over the bounds..

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
pulseaudio-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs

Reply via email to