Commit c2467684 authored by Michael Reeves's avatar Michael Reeves

disregard over sized cvsignore files

parent 1108b71d
......@@ -36,7 +36,7 @@ void CvsIgnoreList::init(FileAccess& dir, const t_DirectoryList* pDirList)
FileAccess file(dir);
file.addPath(".cvsignore");
qint64 size = file.exists() ? file.sizeForReading() : 0;
if(size > 0)
if(size > 0 && size <= (qint64)std::numeric_limits<int>::max())
{
char* buf = new char[size];
if(buf != nullptr)
......
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