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:
@ -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);
|
||||
|
Reference in New Issue
Block a user