Skip to content

fix: use size of destination as third argument of strncpy()#45

Open
szsam wants to merge 1 commit intoTencentCloud:masterfrom
IVOES:cpp/bad-strncpy-size
Open

fix: use size of destination as third argument of strncpy()#45
szsam wants to merge 1 commit intoTencentCloud:masterfrom
IVOES:cpp/bad-strncpy-size

Conversation

@szsam
Copy link

@szsam szsam commented Jun 6, 2023

Calling 'strncpy' with the size of the source buffer as the third argument may result in a buffer overflow.

Calling 'strncpy' with the size of the source buffer as the third
argument may result in a buffer overflow.
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