1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-26 16:34:23 +02:00

Limit line lengths in line-based parsers

This commit is contained in:
2022-07-05 11:08:57 +02:00
parent 99365c3ac8
commit 74b73d8700
9 changed files with 11 additions and 11 deletions

View File

@ -45,7 +45,7 @@ void Ellipsoid::loadList(const QString &path)
while (!file.atEnd()) {
ln++;
QByteArray line = file.readLine();
QByteArray line = file.readLine(4096);
QList<QByteArray> list = line.split(',');
if (list.size() != 4) {
qWarning("%s: %d: Format error", qPrintable(path), ln);