Server_jack_init(Server *self)
{
int i = 0;
char client_name[32]; -----------> No initialization
char name[16];
.........
strncpy(client_name, self->serverName, 31); -------------> when length of self->serverName is 31, client_name may has no terminator. It is a risk of read-overflow.
.........
}
Description
Function: Server_jack_init File: ad_jack.c Call-path: boot (Python) -> Server_boot -> Server_jack_init WarningType: read-overflow. Our analysis tool reported a warning at the call-site of strncpy. As client_name is not initialized, it may has no terminator after strncpy hence to cases read-overflow.
Also seen in Details
The text was updated successfully, but these errors were encountered:
Code snippet
Description
Function: Server_jack_init
File: ad_jack.c
Call-path: boot (Python) -> Server_boot -> Server_jack_init
WarningType: read-overflow. Our analysis tool reported a warning at the call-site of strncpy. As client_name is not initialized, it may has no terminator after strncpy hence to cases read-overflow.
Also seen in Details
The text was updated successfully, but these errors were encountered: