Debian Codegraph @

debian/pscan.1

raw
1 .TH PSCAN 1
2 .SH "NAME"
3 pscan \- Format string security checker for C source code
4 .SH "SYNOPSIS"
5 .B pscan
6 .RI [ options ]
7 .SH DESCRIPTION
8 .B pscan
9 is a source code analysis tool which is designed to highlight potentially
10 dangerous uses of variadic functions such as "printf", "syslog", etc.
11 The scan works by looking for a one of a list of problem functions, and
12 applying the following rule:
13 .PP
14 IF the last parameter of the function is the format string,
15 AND the format string is NOT a static string,
16 THEN complain.
17 .SH LIMITATIONS
18 The code will not report on some potention buffer overflows, because that
19 is not its goal. For example the following code is potential dangerous:
20 .PP
21 .B " sprintf(static_buffer, "%s/.foorc", getenv("HOME"));"
22 .PP
23 This code could cause an issue as there is no immediately obvious bounds
24 checking. However this is a safe usages with regards to format strings.
25 .SH "RETURN VALUES"
26 If there are any errors found,
27 .B pscan
28 exits with status 1.
29 .SH AUTHOR
30 Alan DeKok <[email protected]>