Skip to content

Commit 31bdba4

Browse files
📜🤖 Added by blurb_it.
1 parent 7b2811a commit 31bdba4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
matemp() function is unsafe,so I use safety function.
2+
bandit tool:
3+
```
4+
Issue: [B306:blacklist] Use of insecure and deprecated function (mktemp).
5+
Severity: Medium Confidence: High
6+
CWE: CWE-377 (https://cwe.mitre.org/data/definitions/377.html)
7+
More Info: https://bandit.readthedocs.io/en/1.8.6/blacklists/blacklist_calls.html#b306-mktemp-q
8+
Location: C:\Users\Administrator\Desktop\cpython\lib\asyncio\windows_utils.py:34:14
9+
33 """Like os.pipe() but with overlapped support and using handles not fds."""
10+
34 address = tempfile.mktemp(
11+
35 prefix=r'\.\pipe\python-pipe-{:d}-{:d}-'.format(
12+
36 os.getpid(), next(_mmap_counter)))
13+
```

0 commit comments

Comments
 (0)