Skip to content

Commit 9cd0c91

Browse files
[Security] fix security problem for run_cmd (#61285) (#61398)
* fix security problem for run_cmd
1 parent af9b8c5 commit 9cd0c91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/paddle/utils/cpp_extension/extension_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,7 @@ def _jit_compile(file_path, verbose=False):
13261326
"""
13271327
Build shared library in subprocess
13281328
"""
1329+
assert os.path.exists(file_path)
13291330
ext_dir = os.path.dirname(file_path)
13301331
setup_file = os.path.basename(file_path)
13311332

0 commit comments

Comments
 (0)