Pattern: Buffer not null-terminated
Issue: -
The buffer is not null-terminated after the call to strncpy()
. This will cause bugs later in the code if the code assumes the buffer is null-terminated.
Pattern: Buffer not null-terminated
Issue: -
The buffer is not null-terminated after the call to strncpy()
. This will cause bugs later in the code if the code assumes the buffer is null-terminated.