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

fabtests: Fix coverity issues 414806, 414801, 414809 #9889

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

zachdworkin
Copy link
Contributor

414806: Fix resouce leak
414801, 414809: Replace rand() use with custom get_random_data() that does the same thing but uses /dev/urandom to get the data.

Copy link
Contributor

@j-xiong j-xiong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition, I would group the three random functions and the global variable together.

fabtests/ubertest/test_ctrl.c Outdated Show resolved Hide resolved
Correctly cleanup ctrl_f pointer.

Signed-off-by: Zach Dworkin <[email protected]>
Don't use rand() because it has known exploits
Fix coverity 414801 and 414809

Signed-off-by: Zach Dworkin <[email protected]>
@j-xiong
Copy link
Contributor

j-xiong commented Mar 18, 2024

Ignoring the known CI issue that has been fixed in main.

@j-xiong j-xiong merged commit 31a93e2 into ofiwg:main Mar 18, 2024
13 of 16 checks passed
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.

2 participants