Skip to content

Improve read_file_into_str safety - #149

Merged
manugarg merged 4 commits into
masterfrom
code-safety
May 24, 2023
Merged

manugarg merged 4 commits into
masterfrom
code-safety

Conversation

@manugarg

Copy link
Copy Markdown
Owner

Make read_file_into_str safer by making sure bytes_read are equal to file_size before adding the null terminator at the end.

manugarg added 2 commits May 23, 2023 22:13
Make read_file_into_str safer by making sure bytes_read are equal to file_size before adding the null terminator at the end.
@manugarg
manugarg merged commit e00a775 into master May 24, 2023
@manugarg
manugarg deleted the code-safety branch May 24, 2023 05:23
@sonarqubecloud

Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

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.

1 participant