Which of the following programming languages is most susceptible to buffer overflow attacks, due to its lack of a built-in-bounds checking mechanism? Code:
#include <string.h> int main(){ char buffer[8];
strcpy(buffer, ""11111111111111111111111111111"");
}
Output:
Segmentation fault
A. C#
B. Python
C. Java
D. C++
EC-Council Certified Ethical Hacker v11Free dumps for 312-50v11 in Printable PDF format.High quality PDF and software. VALID exam to help you pass. |
D
C++ is the right answer
C# efficiently cleans up memory to prevent overflows
D. C++
C++
Just want to say thank you all for checking through these for wrong / misleading answers
We probably are not checking through but practicing ourselves too.
But if you think the answer given is incorrect and you know the correct answer, it is your duty to mention it here.
Keep up the good work here guys
I miss Marry and George.
D. C++
C and C++. So correct answer is D.
C# efficiently cleans up memory to prevent overflows.
C++ lack the built-in bounds checking facilities
http://cis1.towson.edu/~cssecinj/modules/cs2/buffer-overflow-cs2-java/
Wrong Answer. C++ is the right answer.