Hi,
Please find the latest report on new defect(s) introduced to alfred found with Coverity Scan.
1 new defect(s) introduced to alfred found with Coverity Scan.
New defect(s) Reported-by: Coverity Scan Showing 1 of 1 defect(s)
** CID 349696: (STRING_NULL) /client.c: 428 in alfred_client_server_status() /client.c: 437 in alfred_client_server_status() /client.c: 437 in alfred_client_server_status() /client.c: 437 in alfred_client_server_status() /client.c: 437 in alfred_client_server_status() /client.c: 428 in alfred_client_server_status() /client.c: 428 in alfred_client_server_status() /client.c: 437 in alfred_client_server_status() /client.c: 428 in alfred_client_server_status() /client.c: 437 in alfred_client_server_status() /client.c: 437 in alfred_client_server_status() /client.c: 428 in alfred_client_server_status() /client.c: 437 in alfred_client_server_status() /client.c: 428 in alfred_client_server_status() /client.c: 428 in alfred_client_server_status()
________________________________________________________________________________________________________ *** CID 349696: (STRING_NULL) /client.c: 428 in alfred_client_server_status() 422 break; 423 case ALFRED_SERVER_NET_IFACE: 424 if (tlvsize != sizeof(*status_net_iface)) 425 break; 426 427 status_net_iface = (struct alfred_server_status_net_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_net_iface->net_iface" to "printf", which expects a null-terminated string.
428 printf("- interface: %s\n", status_net_iface->net_iface); 429 printf("\t- status: %s\n", 430 status_net_iface->active == 1 ? "active" : "inactive"); 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) /client.c: 437 in alfred_client_server_status() 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) 434 break; 435 436 status_bat_iface = (struct alfred_server_status_bat_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_bat_iface->bat_iface" to "printf", which expects a null-terminated string.
437 printf("- batman-adv interface: %s\n", status_bat_iface->bat_iface); 438 break; 439 } 440 441 consumed += tlvsize; 442 } /client.c: 437 in alfred_client_server_status() 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) 434 break; 435 436 status_bat_iface = (struct alfred_server_status_bat_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_bat_iface->bat_iface" to "printf", which expects a null-terminated string.
437 printf("- batman-adv interface: %s\n", status_bat_iface->bat_iface); 438 break; 439 } 440 441 consumed += tlvsize; 442 } /client.c: 437 in alfred_client_server_status() 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) 434 break; 435 436 status_bat_iface = (struct alfred_server_status_bat_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_bat_iface->bat_iface" to "printf", which expects a null-terminated string.
437 printf("- batman-adv interface: %s\n", status_bat_iface->bat_iface); 438 break; 439 } 440 441 consumed += tlvsize; 442 } /client.c: 437 in alfred_client_server_status() 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) 434 break; 435 436 status_bat_iface = (struct alfred_server_status_bat_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_bat_iface->bat_iface" to "printf", which expects a null-terminated string.
437 printf("- batman-adv interface: %s\n", status_bat_iface->bat_iface); 438 break; 439 } 440 441 consumed += tlvsize; 442 } /client.c: 428 in alfred_client_server_status() 422 break; 423 case ALFRED_SERVER_NET_IFACE: 424 if (tlvsize != sizeof(*status_net_iface)) 425 break; 426 427 status_net_iface = (struct alfred_server_status_net_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_net_iface->net_iface" to "printf", which expects a null-terminated string.
428 printf("- interface: %s\n", status_net_iface->net_iface); 429 printf("\t- status: %s\n", 430 status_net_iface->active == 1 ? "active" : "inactive"); 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) /client.c: 428 in alfred_client_server_status() 422 break; 423 case ALFRED_SERVER_NET_IFACE: 424 if (tlvsize != sizeof(*status_net_iface)) 425 break; 426 427 status_net_iface = (struct alfred_server_status_net_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_net_iface->net_iface" to "printf", which expects a null-terminated string.
428 printf("- interface: %s\n", status_net_iface->net_iface); 429 printf("\t- status: %s\n", 430 status_net_iface->active == 1 ? "active" : "inactive"); 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) /client.c: 437 in alfred_client_server_status() 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) 434 break; 435 436 status_bat_iface = (struct alfred_server_status_bat_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_bat_iface->bat_iface" to "printf", which expects a null-terminated string.
437 printf("- batman-adv interface: %s\n", status_bat_iface->bat_iface); 438 break; 439 } 440 441 consumed += tlvsize; 442 } /client.c: 428 in alfred_client_server_status() 422 break; 423 case ALFRED_SERVER_NET_IFACE: 424 if (tlvsize != sizeof(*status_net_iface)) 425 break; 426 427 status_net_iface = (struct alfred_server_status_net_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_net_iface->net_iface" to "printf", which expects a null-terminated string.
428 printf("- interface: %s\n", status_net_iface->net_iface); 429 printf("\t- status: %s\n", 430 status_net_iface->active == 1 ? "active" : "inactive"); 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) /client.c: 437 in alfred_client_server_status() 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) 434 break; 435 436 status_bat_iface = (struct alfred_server_status_bat_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_bat_iface->bat_iface" to "printf", which expects a null-terminated string.
437 printf("- batman-adv interface: %s\n", status_bat_iface->bat_iface); 438 break; 439 } 440 441 consumed += tlvsize; 442 } /client.c: 437 in alfred_client_server_status() 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) 434 break; 435 436 status_bat_iface = (struct alfred_server_status_bat_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_bat_iface->bat_iface" to "printf", which expects a null-terminated string.
437 printf("- batman-adv interface: %s\n", status_bat_iface->bat_iface); 438 break; 439 } 440 441 consumed += tlvsize; 442 } /client.c: 428 in alfred_client_server_status() 422 break; 423 case ALFRED_SERVER_NET_IFACE: 424 if (tlvsize != sizeof(*status_net_iface)) 425 break; 426 427 status_net_iface = (struct alfred_server_status_net_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_net_iface->net_iface" to "printf", which expects a null-terminated string.
428 printf("- interface: %s\n", status_net_iface->net_iface); 429 printf("\t- status: %s\n", 430 status_net_iface->active == 1 ? "active" : "inactive"); 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) /client.c: 437 in alfred_client_server_status() 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) 434 break; 435 436 status_bat_iface = (struct alfred_server_status_bat_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_bat_iface->bat_iface" to "printf", which expects a null-terminated string.
437 printf("- batman-adv interface: %s\n", status_bat_iface->bat_iface); 438 break; 439 } 440 441 consumed += tlvsize; 442 } /client.c: 428 in alfred_client_server_status() 422 break; 423 case ALFRED_SERVER_NET_IFACE: 424 if (tlvsize != sizeof(*status_net_iface)) 425 break; 426 427 status_net_iface = (struct alfred_server_status_net_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_net_iface->net_iface" to "printf", which expects a null-terminated string.
428 printf("- interface: %s\n", status_net_iface->net_iface); 429 printf("\t- status: %s\n", 430 status_net_iface->active == 1 ? "active" : "inactive"); 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface)) /client.c: 428 in alfred_client_server_status() 422 break; 423 case ALFRED_SERVER_NET_IFACE: 424 if (tlvsize != sizeof(*status_net_iface)) 425 break; 426 427 status_net_iface = (struct alfred_server_status_net_iface_v0 *)(buf + consumed);
CID 349696: (STRING_NULL) Passing unterminated string "status_net_iface->net_iface" to "printf", which expects a null-terminated string.
428 printf("- interface: %s\n", status_net_iface->net_iface); 429 printf("\t- status: %s\n", 430 status_net_iface->active == 1 ? "active" : "inactive"); 431 break; 432 case ALFRED_SERVER_BAT_IFACE: 433 if (tlvsize != sizeof(*status_bat_iface))
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
linux-merge@lists.open-mesh.org