Improper Null Termination High

Improper use of string manipulation functions (memset, strncpy, etc) without ensuring null termination can lead to buffer overflows and string handling errors in later part of code. This occurs when a function initializes or modifies a buffer without allocating space for null termination or misses null terminator. Such oversights may cause subsequent string operations to read beyond buffer bounds, resulting in undefined behavior, data corruption, or security vulnerabilities.

Detector ID
c/improper-null-termination@v1.0
Category
Common Weakness Enumeration (CWE) external icon