Skip to content

Commit

Permalink
[Security] fix security problem for run_cmd (PaddlePaddle#61285) (Pad…
Browse files Browse the repository at this point in the history
…dlePaddle#61398)

* fix security problem for run_cmd
  • Loading branch information
wanghuancoder authored Feb 1, 2024
1 parent af9b8c5 commit 9cd0c91
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 9cd0c91

Please sign in to comment.