# HG changeset patch # User Christian Urban # Date 1412627011 -3600 # Node ID 9c2fa54c7c2dbc2c2db6a11e0a098f392d3487fa # Parent 1d2744383b7a4771db90fa384c6e854f8c480c0f updated diff -r 1d2744383b7a -r 9c2fa54c7c2d handouts/ho03.pdf Binary file handouts/ho03.pdf has changed diff -r 1d2744383b7a -r 9c2fa54c7c2d handouts/ho03.tex --- a/handouts/ho03.tex Mon Oct 06 21:04:33 2014 +0100 +++ b/handouts/ho03.tex Mon Oct 06 21:23:31 2014 +0100 @@ -142,6 +142,11 @@ to a destination \pcode{dst}. The important point is that it copies the data until it reaches a zero-byte (\code{"\\0"}). +\begin{figure}[p] +\lstinputlisting[language=C]{../progs/C2.c} +\caption{A suspicious login implementation.\label{C2}} +\end{figure} + \bigskip\bigskip \subsubsection*{A Crash-Course on GDB} diff -r 1d2744383b7a -r 9c2fa54c7c2d progs/README --- a/progs/README Mon Oct 06 21:04:33 2014 +0100 +++ b/progs/README Mon Oct 06 21:23:31 2014 +0100 @@ -1,3 +1,8 @@ +to switch off address randomization + +echo 0 | sudo tee /proc/sys/kernel/randomize_va_space + + C0.c