DescriptionAdded protection for GetCapabilities() failure.
On GetCapabilities() failure, caps.cDestinations is left uninitialized.
Without a protection the following code runs in a random loop
in the worst case up to 0xFFFFFFFF times.
for (destId = 0; destId < caps.cDestinations; destId++)
{
GetDestinationLineInfo(mixId, destId, destLine);
BUG=webrtc:4882
Committed: https://crrev.com/a12ba5502c09b56aa6f8e101e6af7f2d12440663
Cr-Commit-Position: refs/heads/master@{#9663}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|