Академический Документы
Профессиональный Документы
Культура Документы
Lab 8
Valgrind
Tool for memory debugging
Memory leaks
Use of uninitialized memory
Heap/stack buffer overrun
Profiling
Valgrind Example
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdlib.h>
void f (void)
{
int* x = malloc(10 * sizeof(int));
x[10] = 0;
}
int main (void)
{
f();
return 0;
}
Step 8:
valgrind --leak-check=yes ./thttpd p <port
number>
Homework Part1
Reproduce web server crash on Amazon EC2
Take notes on all steps you needed to do
If you cant reproduce the problem, explain
the problems you encountered
Amazon EC2
Homework Part2
You are given a list of vulnerabilities
Rank the seriousness of each
vulnerability
Most urgent to least urgent vulnerability