Skip to content

Commit

Permalink
Capitalize Valgrind to keep it consistent with the rest of the text.
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-simbartl committed Sep 7, 2011
1 parent 7693cc0 commit 8ba8550
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ex8.tex
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ \section{How To Break It}

\begin{enumerate}
\item Get rid of the \verb|'\0'| at the end of \ident{full\_name}
and re-run it. Run it under valgrind too. Now, move the definition
and re-run it. Run it under Valgrind too. Now, move the definition
of \ident{full\_name} to the top of \ident{main} before \ident{areas}.
Try running it under Valgrind a few times and see if you get some
new errors. In some cases, you might still get lucky and not catch
any errors.
\item Change it so that instead of \verb|areas[0]| you try to
print \verb|areas[10]| and see what valgrind thinks of that.
print \verb|areas[10]| and see what Valgrind thinks of that.
\item Try other versions of these, doing it to \ident{name} and
\ident{full\_name} too.
\end{enumerate}
Expand Down
2 changes: 1 addition & 1 deletion ex9.tex
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ \section{How To Break It}
\end{enumerate}

Try to come up with some other ways to break this, and as usual run all of
these under valgrind so you can see exactly what is going on and what the
these under Valgrind so you can see exactly what is going on and what the
errors are called. Sometimes you'll make these mistakes and even
Valgrind can't find them, but try moving where you declare the variables
to see if you get the error. This is part of the voodoo of C, that
Expand Down

0 comments on commit 8ba8550

Please sign in to comment.