Skip to content

Commit 7e46279

Browse files
author
christopherholland-workday
committed
Merge branch 'loop-bound-injection' of https://github.com/FlowiseAI/Flowise into loop-bound-injection
2 parents c75f4fc + 45fc4c3 commit 7e46279

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/server/src/services/evaluations/EvaluatorRunner.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ interface EvaluatorReturnType {
1010
result: 'Pass' | 'Fail' | 'Error'
1111
}
1212

13+
// Limit maximum array sizes to prevent DoS attacks
14+
const MAX_OUTPUTS = 10000
15+
const MAX_EVALUATORS = 1000
16+
const MAX_SPLIT_VALUES = 1000
17+
1318
export const runAdditionalEvaluators = async (
1419
metricsArray: ICommonObject[],
1520
actualOutputArray: string[],

0 commit comments

Comments
 (0)