---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
---
S202 Uses of `tarfile.extractall()`
 --> S202.py:8:5
  |
6 | def unsafe_archive_handler(filename):
7 |     tar = tarfile.open(filename)
8 |     tar.extractall(path=tempfile.mkdtemp())
  |     ^^^^^^^^^^^^^^
9 |     tar.close()
  |

S202 Uses of `tarfile.extractall()`
  --> S202.py:14:5
   |
12 | def managed_members_archive_handler(filename):
13 |     tar = tarfile.open(filename)
14 |     tar.extractall(path=tempfile.mkdtemp(), members=members_filter(tar))
   |     ^^^^^^^^^^^^^^
15 |     tar.close()
   |

S202 Uses of `tarfile.extractall()`
  --> S202.py:20:5
   |
18 | def list_members_archive_handler(filename):
19 |     tar = tarfile.open(filename)
20 |     tar.extractall(path=tempfile.mkdtemp(), members=[])
   |     ^^^^^^^^^^^^^^
21 |     tar.close()
   |

S202 Uses of `tarfile.extractall()`
  --> S202.py:26:5
   |
24 | def provided_members_archive_handler(filename):
25 |     tar = tarfile.open(filename)
26 |     tarfile.extractall(path=tempfile.mkdtemp(), members=tar)
   |     ^^^^^^^^^^^^^^^^^^
27 |     tar.close()
   |

S202 Uses of `tarfile.extractall()`
  --> S202.py:38:5
   |
36 | def filter_fully_trusted(filename):
37 |     tar = tarfile.open(filename)
38 |     tarfile.extractall(path=tempfile.mkdtemp(), filter="fully_trusted")
   |     ^^^^^^^^^^^^^^^^^^
39 |     tar.close()
   |
