Skip to content

Commit

Permalink
[Security] fix security problem for run_cmd (PaddlePaddle#61285)
Browse files Browse the repository at this point in the history
* fix security problem for run_cmd
  • Loading branch information
wanghuancoder committed Jan 31, 2024
1 parent ac1702b commit 800a94d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/paddle/utils/cpp_extension/extension_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,7 @@ def _jit_compile(file_path, verbose=False):
"""
Build shared library in subprocess
"""
assert os.path.exists(file_path)
ext_dir = os.path.dirname(file_path)
setup_file = os.path.basename(file_path)

Expand Down

0 comments on commit 800a94d

Please sign in to comment.