summaryrefslogtreecommitdiff
path: root/Python/strdup.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-05 22:57:02 -0700
committerBenjamin Peterson <benjamin@python.org>2018-09-09 22:26:27 -0700
commit59936ae7b56db8798b37bfb313558b43008c9cae (patch)
treea9df6c3ffc0a1c1ce443f278cf15dfc999f9a02c /Python/strdup.c
parent0afada163c7ef25c3a9d46ed445481fb69f2ecaf (diff)
downloadcpython-git-benjamin-traceback-obo.tar.gz
bpo-34588: Fix an off-by-one error in traceback formatting.benjamin-traceback-obo
The recursive frame pruning code always undercounted the number of elided frames by one. That is, in the "[Previous line repeated N more times]" message, N would always be one too few. Near the recursive pruning cutoff, one frame could be silently dropped. That situation is demonstrated in the OP of the bug report. The fix is to start the identical frame counter at 1.
Diffstat (limited to 'Python/strdup.c')
0 files changed, 0 insertions, 0 deletions