Skip to content

Commit c6b2471

Browse files
committed
comment
1 parent 7072a48 commit c6b2471

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/utils/stacktrace.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)