libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uninitialized variables


From: Ralf Wildenhues
Subject: uninitialized variables
Date: Sun, 6 Nov 2005 19:37:48 +0100
User-agent: Mutt/1.5.9i

Given the need for an audit of macro ordering in libtool, I decided
I needed all the help and information I could get.

So first, I went through the fun of
  sh -u configure
adding environment variables until I hit bugs.

I also wrote a hacky script to find uninitialized uses by unleashing
weird sed scripts upon `configure' -- attached.  Both target almost the
same thing, with the difference being that the former only analyzes the
actual code path taken, whereas the latter is a pretty bad heuristic but
covers all code without actually knowing anything about logic, and being
blissfully ignorant to shell functions and other nonlinear execution
order.  IOW, the script is primarily useful for autoconf output.

These two tools complement each other, erm, have both uncovered issues..

Cheers,
Ralf

Attachment: use-before-set
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]