File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ export function createStackParser(...parsers: StackLineParser[]): StackParser {
24
24
25
25
for ( let i = skipFirstLines ; i < lines . length ; i ++ ) {
26
26
let line = lines [ i ] as string ;
27
- // Ignore lines over 1kb as they are unlikely to be stack frames.
28
- // Many of the regular expressions use backtracking which results in run time that increases exponentially with
29
- // input size. Huge strings can result in hangs/Denial of Service:
27
+ // Truncate lines over 1kb because many of the regular expressions use
28
+ // backtracking which results in run time that increases exponentially
29
+ // with input size. Huge strings can result in hangs/Denial of Service:
30
30
// https://github.com/getsentry/sentry-javascript/issues/2286
31
31
if ( line . length > 1024 ) {
32
32
line = line . slice ( 0 , 1024 ) ;
You can’t perform that action at this time.
0 commit comments