Skip to content

Commit 4b7e6d6

Browse files
Revert "Add protections for loop-bound injections" (#5847)
1 parent 7e46279 commit 4b7e6d6

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ 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-
1813
export const runAdditionalEvaluators = async (
1914
metricsArray: ICommonObject[],
2015
actualOutputArray: string[],

0 commit comments

Comments
 (0)