fix buffer overflow in shader and closed captions

This commit is contained in:
nillerusr
2022-07-27 18:29:48 +03:00
parent a53fff833f
commit 6bc71d1491
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -2025,7 +2025,7 @@ public:
continue;
// Lookup the data
CaptionLookup_t &entry = directories[ nFileIndex ].m_CaptionDirectory[ caption->dirindex ];
CaptionLookup_t &entry = directories[ caption->fileindex ].m_CaptionDirectory[ caption->dirindex ];
if ( entry.blockNum != nBlockNum )
continue;
@@ -2139,7 +2139,7 @@ public:
int dc = directories.Count();
for ( i = 0; i < dc; ++i )
{
idx = directories[ i ].m_CaptionDirectory.Find( search );
idx = directories[ i ].m_CaptionDirectory.Find( search );
if ( idx == directories[ i ].m_CaptionDirectory.InvalidIndex() )
continue;