Skip to content
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

Replaced Deprecated function mktemp to TemporaryFile #2817

Merged

Conversation

karina-ranadive
Copy link
Contributor

The mktemp function in launch launch_utils.py presents a security vulnerability for my team that utilizes realsense-ros. To fix this, I utilized the function TemporaryFile which has the same purpose as mktemp but is a safe function to use whereas mktemp is a call to a deprecated function, which can be insecure.

@karina-ranadive karina-ranadive changed the title replaced Deprecated function mktemp to TemporaryFile Replaced Deprecated function mktemp to TemporaryFile Jul 19, 2023
@SamerKhshiboun
Copy link
Collaborator

Hi @karina-ranadive
Thanks for the fix.

I'm adding a reference link describing the differences
https://docs.python.org/3/library/tempfile.html

Approving the PR.

@karina-ranadive
Copy link
Contributor Author

karina-ranadive commented Jul 21, 2023 via email

@Nir-Az Nir-Az merged commit 7456c38 into IntelRealSense:ros2-development Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants