-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix it #58923
Fix it #58923
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@risemeup1 注意一下 |
Need to synchronize and modify to here: Line 915 in 4ff3c4d
|
python/setup.py.in
Outdated
@@ -912,7 +913,7 @@ with open("@PADDLE_BINARY_DIR@/python/paddle/README.md", "r", encoding='UTF-8') | |||
|
|||
# strip *.so to reduce package size | |||
if '${WITH_STRIP}' == 'ON': | |||
command = 'find ${PADDLE_BINARY_DIR}/python/paddle -name "*.so" | xargs -i strip {}' | |||
command = 'find ${shlex.quote(PADDLE_BINARY_DIR)}/python/paddle -name "*.so" | xargs -i strip {}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
command = 'find ${shlex.quote(PADDLE_BINARY_DIR)}/python/paddle -name "*.so" | xargs -i strip {}' | |
command = ( | |
'find ' | |
+ shlex.quote('${PADDLE_BINARY_DIR}') | |
+ '/python/paddle -name "*.so" | xargs -i strip {}' | |
) |
Fixed command quoting bug.
* Quote paddle_binary_dir to prevent command injection. * Quote paddle_binary_dir to prevent command injection. * Update setup.py.in Fixed command quoting bug.
* Quote paddle_binary_dir to prevent command injection. * Quote paddle_binary_dir to prevent command injection. * Update setup.py.in Fixed command quoting bug.
PR types
Others
PR changes
Others
Description
Use shlex.quote to filter path of paddle binary
Original PR:#52944