You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
cmds.c:1838:24: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size]
strncat(buf, *argv, sizeof(buf)-strlen(buf));
^~~~~~~~~~~~~~~~~~~~~~~
cmds.c:1838:24: note: change the argument to be the free space in the destination buffer minus the terminating null byte
strncat(buf, *argv, sizeof(buf)-strlen(buf));
^~~~~~~~~~~~~~~~~~~~~~~
sizeof(buf) - strlen(buf) - 1
The text was updated successfully, but these errors were encountered:
mmaraya
changed the title
cmds.c:1838: size argument in 'strncat' is too large
cmds.c:1838: size argument in 'strncat' is too large (CWE-120)
Feb 13, 2016
mmaraya
changed the title
cmds.c:1838: size argument in 'strncat' is too large (CWE-120)
LLVM: Buffer Copy without Checking Size of Input (CWE-120)
Feb 29, 2016
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: