subject

We are making a cool program to greet our clients. it expects two arguments you can type to a textbox: your name and the length of your name. simple enough, right? and secure as can be…

your job is to prove us wrong and trigger a crash providing malicious input that is not filtered by the program.

if you think you found it, you may test your input on this page below, at the solution field.

#include
#include
#include
#include

int main(int argc, char* argv[]) {
assert(argc == 3);
char name[64];
int len;
len = atoi(argv[2]);
assert(len < 64);
memcpy(name, argv[1], len);
name[len] = '\0';
std: : cout < < "hello " < < name < < ", nice to meet you! " < < std: : endl;
return 0;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 22.06.2019 11:00
When building customer relationships through email what should you not do? question 2 options: utilize proper grammar, spelling, and punctuation type in all capital letters use hyperlinks rather than attachments respond to all emails within 24 hours
Answers: 1
question
Computers and Technology, 22.06.2019 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
What does 21 pilots middle aged name as a band 15 years prior to them naming their band 21 pilots?
Answers: 1
You know the right answer?
We are making a cool program to greet our clients. it expects two arguments you can type to a textbo...
Questions
question
English, 31.03.2021 19:00
question
Mathematics, 31.03.2021 19:00
question
English, 31.03.2021 19:00
question
Physics, 31.03.2021 19:00
question
English, 31.03.2021 19:00