Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Proper fix: Limit to file size

  • Loading branch information...
commit 6c3aa00afb860a2dbeb1cc8d0edc8932c64a5bd2 1 parent 8cb05d6
jmbreuer jmbreuer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/filesystem/iso9660.cpp
2  xbmc/filesystem/iso9660.cpp
View
@@ -902,7 +902,7 @@ long iso9660::ReadFile(HANDLE hFile, uint8_t *pBuffer, long lSize)
if ( pContext->m_bUseMode2 )
sectorSize = MODE2_DATA_SIZE;
- while (lSize > 0 && pContext->m_dwFilePos + sectorSize <= pContext->m_dwFileSize)
+ while (lSize > 0 && pContext->m_dwFilePos < pContext->m_dwFileSize)
{
pContext->m_dwCurrentBlock = (DWORD) (pContext->m_dwFilePos / sectorSize);
int64_t iOffsetInBuffer = pContext->m_dwFilePos - (sectorSize * pContext->m_dwCurrentBlock);
Please sign in to comment.
Something went wrong with that request. Please try again.