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

*: remove remaining strncpy() users #17156

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

eqvinox
Copy link
Contributor

@eqvinox eqvinox commented Oct 17, 2024

the checkpatch warnings on unrelated PRs have pestered me enough to go remove the few strncpy() calls we have left 😐

Free overflow guard in the CSV code because it's not obvious to me that this strncpy (now memcpy) wasn't writing past the end of the allocated buffer… this CSV code has a bit of "code smell" tbh.

@frrbot frrbot bot added libfrr tests Topotests, make check, etc tools labels Oct 17, 2024
`checkpatch` has sufficiently annoyed me to fix this.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
`checkpatch` has sufficiently annoyed me to fix this.

Includes free overflow guard in CSV code.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
`checkpatch` has sufficiently annoyed me to fix this.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

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

looks good

@riw777
Copy link
Member

riw777 commented Oct 29, 2024

I think the lint errors are okay here (?) ... waiting on CI, though.

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.

2 participants