From 64f5b18c0a590b91b489bb9c76a37bba4632e75b Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 23 Apr 2021 14:44:16 +0200 Subject: projinfo: increase file size limit of files opened with @filename to 1MB to be able to read file generated by ossfuzz --- src/apps/projinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/apps/projinfo.cpp') 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(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); -- cgit v1.2.3