Commit a0fd1390 authored by Oleg Korshul's avatar Oleg Korshul Committed by GitHub

Merge pull request #55 from ONLYOFFICE/feature/v5.0.7.1

Feature/v5.0.7.1
parents 48852bc6 20b781cb
......@@ -122,6 +122,9 @@ bool COfficeFileFormatChecker::isPdfFormatFile (unsigned char* pBuffer,int dwByt
if (pBuffer == NULL) return false;
int nTempBufferSize = dwBytes < 20 ? dwBytes : 20;
if (nTempBufferSize < 1)
return false;
char* pTempBuffer = new char[nTempBufferSize];
memcpy ( pTempBuffer, pBuffer, nTempBufferSize );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment