Tag Info

New answers tagged


I understand it is a bit late for your assignment ;) but for other students who may be groping in the dark with similar problem, here goes... Python is written in C, and the C executable is throwing the segmentation fault error. To understand segmentation fault you need to run Python itself in gdb (GNU Debugger assuming you are on Linux/Unix) and then pass ...


Here is an example that shows how this overflow can help you. Imagine you don't have access to the private members (pwd for example) so printf will help you see the content of this variable #include <iostream> #include <stdio.h> #include <string.h> using namespace std; struct SecureLogin{ SecureLogin(const char * login_) { ...

Top 50 recent answers are included