Skillset can help you prepare! Sign up for your free Skillset account and take the first steps towards your certification.
Which of these APIs has a parameter that might be susceptible to a buffer overflow attack? (C++ programming / Choose all that apply))
do_something(int x, char * y);
do_something(int x, char [] y);
do_something(int x, char y);
do_something(int x, char & y);
Look for buffer overflows when an array is passed in as a parameter. The variable y is a char array in answer c, but arrays can also be passed in as pointers to the first slot. Hence y in answer a may also be treated as an array. --- Okay.... answers are randomized in presentation. Your "answer A" and "answer C" is ineffectual and empty of meaning. Rote memorization of answers it is then! (Edit: Updated question to reflect that more than one answer needs to be selected)
Train with Skillset and pass your certification exam. Faster. Guaranteed.
Study thousands of practice questions that organized by skills and ranked by difficulty.
Create a tailored training plan based on the knowledge you already possess.
Know when you’re ready for the high-stakes exam. Have the confidence that you will pass on your first attempt.