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

strncpy possibly not null-terminating #128

Closed
CDKnightNASA opened this issue Aug 28, 2020 · 0 comments · Fixed by #129 or #133
Closed

strncpy possibly not null-terminating #128

CDKnightNASA opened this issue Aug 28, 2020 · 0 comments · Fixed by #129 or #133
Milestone

Comments

@CDKnightNASA
Copy link
Contributor

/home/user/nasa/cFS/tools/cFS-GroundSystem/Subsystems/cmdUtil/cmdUtil.c:817:17: error: ‘strncpy’ specified bound 1024 equals destination size [-Werror=stringop-truncation]
                 strncpy(sbuf, &tail[1], sizeof(sbuf));

strncpy(sbuf, &tail[1], sizeof(sbuf));

CDKnightNASA added a commit to CDKnightNASA/cFS-GroundSystem that referenced this issue Aug 28, 2020
CDKnightNASA added a commit to CDKnightNASA/cFS-GroundSystem that referenced this issue Sep 2, 2020
yammajamma added a commit that referenced this issue Sep 3, 2020
@astrogeco astrogeco added this to the 2.3.0 milestone Oct 1, 2020
@astrogeco astrogeco modified the milestones: 2.3.0, 3.0.0 Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants