Skip to content

Commit

Permalink
Merge pull request #2117 from cjee21/AAC
Browse files Browse the repository at this point in the history
Fix out-of-bounds array read in File_Aac_Main
  • Loading branch information
JeromeMartinez authored Sep 30, 2024
2 parents d0d9af7 + e95f8b6 commit e7fd9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MediaInfo/Audio/File_Aac_Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ extern string Aac_ChannelMode_GetString(const Aac_OutputChannel* const OutputCha
memset(ChannelModes, 0, Aac_ChannelMode_Max+1);
for (int i=0; i<OutputChannels_Size; i++)
{
if (OutputChannels[i]>Aac_OutputChannelPosition_Size)
if (OutputChannels[i]>=Aac_OutputChannelPosition_Size)
ChannelModes[Aac_ChannelMode_Max]++;
else
ChannelModes[Aac_ChannelMode[OutputChannels[i]]]++;
Expand Down

0 comments on commit e7fd9f0

Please sign in to comment.