02230 - Laboratory Exercise 2.

Secure Programming Lint

The aims of this exercise is to acquire hands-on experience with language based security, through the use of a simple tool for statically checking C programs for security vulnerabilities and coding mistakes.

The exercise, described in Exercise Sheet 2, must be documented by printouts of the finished programs along with the resulting output from running lint on the finished programs. Furthermore, short answers to the questions asked in exercise 7 must be included in the report.

Example programs

Program 1

Program 2

Program 3