mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
5 lines
243 B
C++
5 lines
243 B
C++
strncat(dest, src, strlen(dest)); //wrong: should use remaining size of dest
|
|
|
|
strncat(dest, src, sizeof(dest)); //wrong: should use remaining size of dest.
|
|
//Also fails if dest is a pointer and not an array.
|