We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
the sprintf function is used in several places including here in raft_server.cxx :
sprintf
sprintf( temp_buf, "peer %d: DC ID %d, %s, %s, %d\n", (int)cur_srv->get_id(), (int)cur_srv->get_dc_id(), cur_srv->get_endpoint().c_str(), cur_srv->is_learner() ? "learner" : "voting member", cur_srv->get_priority() );
The echo_server in the examples folder provide a vulnerable code:
Regards
The text was updated successfully, but these errors were encountered:
Yes, need to replace sprintf with snprintf, or just get rid of it and use stringstream instead.
snprintf
stringstream
Sorry, something went wrong.
#409
No branches or pull requests
Hi,
the
sprintf
function is used in several placesincluding here in raft_server.cxx :
The echo_server in the examples folder provide a vulnerable code:
Regards
The text was updated successfully, but these errors were encountered: