Support configurable limit on number of arguments processed

This commit is contained in:
martinhsv
2020-01-08 15:48:19 -08:00
committed by Felipe Zimmerle
parent 4e9ba44d03
commit f57265a3e2
10 changed files with 6757 additions and 6605 deletions

View File

@@ -142,7 +142,10 @@ int JSON::addArgument(const std::string& value) {
}
m_transaction->addArgument("JSON", path + data, value, 0);
if (!m_transaction->addArgument("JSON", path + data, value, 0)) {
// cancel parsing by returning false
return 0;
}
return 1;
}