bpo-39017 Fix infinite loop in the tarfile module by rishi93 · Pull Request #21454 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
bpo-39017 Fix infinite loop in the tarfile module
Add a check for length = 0 in the _proc_pax function to avoid running into an infinite loop
  • Loading branch information
rishi93 committed Jul 12, 2020
commit 1fa6ef2bc7cee1c8e088dd8b397d9b2d54036dbc
2 changes: 2 additions & 0 deletions Lib/tarfile.py
Binary file added Lib/test/recursion.tar
Binary file not shown.
5 changes: 5 additions & 0 deletions Lib/test/test_tarfile.py