Skip to content

Use comparison instead of unsigned int substraction#1052

Open
StanislavGlebik wants to merge 1 commit intosoedinglab:masterfrom
StanislavGlebik:comparison-instead-of-substraction
Open

Use comparison instead of unsigned int substraction#1052
StanislavGlebik wants to merge 1 commit intosoedinglab:masterfrom
StanislavGlebik:comparison-instead-of-substraction

Conversation

@StanislavGlebik
Copy link

Static security scanner highlighted this line as a potential vulnerability, since both size and written are size_t, and hence can never be less than 0.

I don't believe it it an actual issue, but size > written should achieve the same goal.

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