OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: argcount script
From: typoscene.at
Date: Sat Jul 01 2000 - 05:27:16 CDT


originally didn't plan to release this, but as people seem to make
up their own analysis tools it doesn't matter... :

http://inferno.tusculum.edu/~typo/teso-egcs-format.patch
usage: patch egcs, put "printf 1 2\n" like stuff into ~/.gccrc,
and compile your stuff with -Wformat.

enemy:~# cat test.c; gcc -Wformat test.c -o test
#include <stdio.h>
int main() { char x[8]; printf(x); }
test.c: In function `main':
test.c:2: warning: TESO: Insufficient Format arguments: printf(1/2).

imho using the same parser that you use to compile your programs is more
reliable...

saluton,
    typo

--
so much entropy, so little time