Menu

#130 Steps to produce buffer overflow

v1.0_(example)
closed-works-for-me
Other (17)
5
2007-01-18
2005-04-18
No

1) Start TeXnicCenter:

2) Create a new document and paste the following code:
\documentclass[a4paper,12pt]{article}
\usepackage{ngerman}
\usepackage[latin1]{inputenc}
\usepackage{color}
\definecolor{magenta}{rgb}{1, 0, 1}
\begin{document}
\input{Deckblatt}
\input{Inhalt}
\section{\Large Grundlagen}
\input{Punkte}
\input{Extrema}
\section{\Large Beispiele mit $n=2$}
\input{N2Beispiel1}
%\input{N2Beispiel2}
\input{N2Beispiel3}
\input{N2Beispiel4}
\section{\Large Beispiele mit $n=3$}
\input{N3Beispiel1}
%\input{N3Beispiel2}
\section{\Large Beispiele mit $n>3$}
\input{N4Beispiel}
\end{document}

3) Mark lines 7-21and push the del button.

4) Now you have the following code:
\documentclass[a4paper,12pt]{article}
\usepackage{ngerman}
\usepackage[latin1]{inputenc}
\usepackage{color}
\definecolor{magenta}{rgb}{1, 0, 1}
\begin{document}
\end{document}

5) Mark the lines 5-6 and push the del button

6) Now you have the following code:
\documentclass[a4paper,12pt]{article}
\usepackage{ngerman}
\usepackage[latin1]{inputenc}
\begin{document}
\end{document}

7) Go two steps back with ctrl-z or the back button

Discussion

  • Tino Weinkauf

    Tino Weinkauf - 2007-01-18
    • assigned_to: nobody --> niteria
    • status: open --> closed-works-for-me
     
  • Tino Weinkauf

    Tino Weinkauf - 2007-01-18

    Logged In: YES
    user_id=439379
    Originator: NO

    Works for me.

     

Anonymous
Anonymous

Add attachments
Cancel