aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-04-23 14:44:16 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-04-23 14:44:16 +0200
commit64f5b18c0a590b91b489bb9c76a37bba4632e75b (patch)
treee65d4adddce162da90e1fa1080d1c08a05b7d2b7 /src
parent399cba57262f73f205f0ea6832acd383741d120f (diff)
downloadPROJ-64f5b18c0a590b91b489bb9c76a37bba4632e75b.tar.gz
PROJ-64f5b18c0a590b91b489bb9c76a37bba4632e75b.zip
projinfo: increase file size limit of files opened with @filename to 1MB to be able to read file generated by ossfuzz
Diffstat (limited to 'src')
-rw-r--r--src/apps/projinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apps/projinfo.cpp b/src/apps/projinfo.cpp
index 8b6acf54..0ba1416e 100644
--- a/src/apps/projinfo.cpp
+++ b/src/apps/projinfo.cpp
@@ -274,7 +274,7 @@ static BaseObjectNNPtr buildObject(
char buffer[256];
fs.read(buffer, sizeof(buffer));
l_user_string.append(buffer, static_cast<size_t>(fs.gcount()));
- if (l_user_string.size() > 100 * 1000) {
+ if (l_user_string.size() > 1000 * 1000) {
fs.close();
std::cerr << context << ": too big file" << std::endl;
std::exit(1);