Commit a460a6a6 authored by Michael Reeves's avatar Michael Reeves

Fix integer overflow.

Prevent line count from exceeding maximum value in
parent 27f9f7e2
......@@ -597,6 +597,9 @@ bool SourceData::FileData::preprocess(bool bPreserveCR, QTextCodec* pEncoding)
if(i >= ucSize || p[i] == '\n')
if(lines >= INT_MAX - 5)
return false;
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