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 {
2424
2525 for ( let i = skipFirstLines ; i < lines . length ; i ++ ) {
2626 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:
3030 // https://github.com/getsentry/sentry-javascript/issues/2286
3131 if ( line . length > 1024 ) {
3232 line = line . slice ( 0 , 1024 ) ;
You can’t perform that action at this time.
0 commit comments