Change: Limit total script ops that can be consumed by a list valuate

(cherry picked from commit 1d0b40b2b2f2998d96221b18ae65a4d1524c61a7)
This commit is contained in:
Jonathan G Rennison
2024-01-01 22:51:54 +00:00
parent 42c8f50551
commit be4f8b91c6
5 changed files with 36 additions and 0 deletions

View File

@@ -15,6 +15,9 @@
#include "../../3rdparty/cpp-btree/safe_btree_set.h"
#include "../../3rdparty/cpp-btree/safe_btree_map.h"
/** Maximum number of operations allowed for valuating a list. */
static const int MAX_VALUATE_OPS = 500000;
class ScriptListSorter;
/**