Skip to content

Commit

Permalink
fix buffer overrun;
Browse files Browse the repository at this point in the history
  • Loading branch information
gatekeep committed Feb 19, 2025
1 parent 29d3712 commit a2b1367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bridge/HostBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ void HostBridge::processUDPAudio()
if (m_trace)
Utils::dump(1U, "HostBridge()::processUDPAudio() uLaw Audio", pcm, MBE_SAMPLES_LENGTH * 2U);

for (uint32_t pcmIdx = 0; pcmIdx < pcmLength; pcmIdx++) {
for (uint32_t pcmIdx = 0; pcmIdx < MBE_SAMPLES_LENGTH; pcmIdx++) {
samples[smpIdx] = decodeMuLaw(pcm[pcmIdx]);
smpIdx++;
}
Expand Down

0 comments on commit a2b1367

Please # to comment.