Throw a domain error as json_spirit is a third-party library.
This commit is contained in:
@@ -310,7 +310,7 @@ namespace json_spirit
|
|||||||
{
|
{
|
||||||
// ZCASH: Prevent potential stack overflow by setting a limit on the number of nested compound elements
|
// ZCASH: Prevent potential stack overflow by setting a limit on the number of nested compound elements
|
||||||
if (stack_.size() > 128) {
|
if (stack_.size() > 128) {
|
||||||
throw "too many nested elements";
|
throw std::domain_error("too many nested elements");
|
||||||
}
|
}
|
||||||
// ENDZCASH
|
// ENDZCASH
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user