I'll have to look at this more closely in the morning, but I suspect you may
have reinvented the wheel. (Though, at first glance, it looks like a *really*
nice wheel! :-))
The folks at AUSCERT released a generic wrapper program to handle buffer
overflow problems a while back. It's available from:
ftp://ftp.auscert.org.au/pub/auscert/tools/overflow_wrapper.c
It's been the answer to more than one advisory that began "Due to insufficient
bounds checking... ").
--steve
It's not what you know, but what you think of in time.
Steven Kirby University of Georgia kirby@cosmic.uga.edu