← Commit list

0939f2ebd

Denys Vlasenko
Denys Vlasenko
2009-10-24
FAILED Duration: 28s

Subject

fix up potential printf's with unsafe format strings

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/sum.c+1 -1
@@ -41,7 +41,7 @@ static unsigned sum_file(const char *file, unsigned type)
if (!bytes_read && !r)
/* no error */
break;
- bb_perror_msg(file);
+ bb_simple_perror_msg(file);
return 0;
}
networking/tftp.c+1 -1
@@ -572,7 +572,7 @@ static int tftp_protocol(
strcpy((char*)error_pkt_str, bb_msg_read_error);
send_err_pkt:
if (error_pkt_str[0])
- bb_error_msg((char*)error_pkt_str);
+ bb_error_msg("%s", (char*)error_pkt_str);
error_pkt[1] = TFTP_ERROR;
xsendto(socket_fd, error_pkt, 4 + 1 + strlen((char*)error_pkt_str),
&peer_lsa->u.sa, peer_lsa->len);