Skip to content

Commit

Permalink
if buff + frameSize is bigger than srcEnd, break before memcpy (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwashiira authored Mar 13, 2024
1 parent 75c9cb3 commit 224312f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsMuxer/movDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ class MovParsedAudioTrackData final : public ParsedTrackPrivData
unsigned frameSize = m_sc->sample_size;
if (frameSize == 0)
frameSize = m_sc->m_index[m_sc->m_indexCur++];
if (buff + frameSize > srcEnd) break;
if (isAAC)
{
m_aacRaw.m_channels = static_cast<uint8_t>(m_sc->channels);
Expand Down

0 comments on commit 224312f

Please sign in to comment.