Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel
hp
Commits
f3413d02
Commit
f3413d02
authored
Jan 4, 2017
by
Peter Gerwinski
Browse files
Options
Downloads
Patches
Plain Diff
Update Praktikumsunterlagen Versuch 4; Server-Programm ohne Buffer-Overflow: server-3.c
parent
060dba4e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
20161219/hp-2016ws-p4.pdf
+0
-0
0 additions, 0 deletions
20161219/hp-2016ws-p4.pdf
20161219/hp-2016ws-p4.tex
+7
-0
7 additions, 0 deletions
20161219/hp-2016ws-p4.tex
20170102/server-3.c
+33
-0
33 additions, 0 deletions
20170102/server-3.c
with
40 additions
and
0 deletions
20161219/hp-2016ws-p4.pdf
+
0
−
0
View file @
f3413d02
No preview for this file type
This diff is collapsed.
Click to expand it.
20161219/hp-2016ws-p4.tex
+
7
−
0
View file @
f3413d02
...
@@ -52,6 +52,9 @@
...
@@ -52,6 +52,9 @@
in eine Grafik einfügen und nachträglich verändern kann
in eine Grafik einfügen und nachträglich verändern kann
(z.
\,
B.
\
Position, Größe, Farbe).
(z.
\,
B.
\
Position, Größe, Farbe).
(Beispiel: Ich füge zunächst zwei Rechtecke und einen Kreis in eine Grafik ein,
wähle anschließend das erste Rechteck aus und ändere dessen Farbe.)
\bigskip
\bigskip
Hinweise:
Hinweise:
...
@@ -70,6 +73,10 @@
...
@@ -70,6 +73,10 @@
Das Beispielprogramm
\gitfile
{
20161219
}{
gtk-7.c
}
zeigt,
Das Beispielprogramm
\gitfile
{
20161219
}{
gtk-7.c
}
zeigt,
wie man in der GUI-Bibliothek GTK+
wie man in der GUI-Bibliothek GTK+
Tastatur- und Maus-Eingaben entgegennimmt und verarbeitet.
Tastatur- und Maus-Eingaben entgegennimmt und verarbeitet.
\item
Das Auswählen eines bereits vorhandenen Objekts geht am einfachsten
mittels Tastatur-Eingaben (z.
\,
B.
\
Ziffer 1 für das erste Objekt usw.).
Auswahl mit der Maus ist auch möglich, aber schwieriger.
\item
\item
Mit Hilfe der Funktion
\lstinline
{
gtk
_
widget
_
queue
_
draw()
}
Mit Hilfe der Funktion
\lstinline
{
gtk
_
widget
_
queue
_
draw()
}
teilen Sie GTK+ mit, daß Sie ein
\lstinline
{
GtkWidget
}
teilen Sie GTK+ mit, daß Sie ein
\lstinline
{
GtkWidget
}
...
...
This diff is collapsed.
Click to expand it.
20170102/server-3.c
0 → 100644
+
33
−
0
View file @
f3413d02
#include
<stdio.h>
#include
<stdlib.h>
void
stuff
(
void
)
{
asm
(
"mov $0, %eax"
);
asm
(
"add $0x28, %rsp"
);
asm
(
"ret"
);
asm
(
"nop"
);
asm
(
"nop"
);
asm
(
"nop"
);
asm
(
"mov %rsp, %rdi"
);
asm
(
"ret"
);
asm
(
"nop"
);
asm
(
"nop"
);
asm
(
"nop"
);
asm
(
"add $0x20, %rdi"
);
asm
(
"ret"
);
asm
(
"nop"
);
asm
(
"nop"
);
asm
(
"nop"
);
system
(
"clear"
);
exit
(
0
);
}
int
main
(
void
)
{
char
buffer
[
20
];
printf
(
"Your name, please: "
);
fgets
(
buffer
,
20
,
stdin
);
printf
(
"Hello, %s!
\n
"
,
buffer
);
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment