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

Fix ASCO running with QucsatorRF #843

Merged
merged 3 commits into from
Jul 15, 2024
Merged

Fix ASCO running with QucsatorRF #843

merged 3 commits into from
Jul 15, 2024

Conversation

ra3xdh
Copy link
Owner

@ra3xdh ra3xdh commented Jul 14, 2024

This is an attempt to fix #830. The idea is to create a symlink qucsator_rf->qucsator in system temporary files directory.

@ra3xdh ra3xdh marked this pull request as draft July 14, 2024 16:46
@ra3xdh ra3xdh added the asco label Jul 14, 2024
@ra3xdh ra3xdh marked this pull request as ready for review July 15, 2024 14:34
@ra3xdh ra3xdh merged commit e0f25cc into current Jul 15, 2024
6 checks passed
@ra3xdh ra3xdh deleted the 830_fix_asco branch July 15, 2024 14:44
@ivandi69
Copy link
Contributor

The way the symlink is created is a security risk. https://cwe.mitre.org/data/definitions/61.html

On POSIX systems, the path may be the one specified in the environment variables TMPDIR, TMP, TEMP, TEMPDIR, and, if none of them are specified, the path "/tmp" is returned.

It would be better to use the .cache folder, or use https://en.cppreference.com/w/cpp/io/c/tmpnam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ASCO optimization doesn't work with QucsatorRF but works with Qucsator
2 participants