[olug] C programming question (cross-compiling under Linux to run on Windows).

Dan Linder dan at linder.org
Sat Feb 28 17:34:06 UTC 2009


I've got a simple text-only program that is written in C (nothing fancy, no
Visual-C specific libraries, only some file and network IO).

Recently, the compiled binary has started showing some "Dr. Watson" errors
on newer systems - I suspect it's a buffer-overflow error somewhere.  (The
functionality of the actual tool appears to be unaffected.)  This leads to
my questions:

Q1: Since my C is really rusty, are there any GPL/free tools or sites that
will look over the code and check for common programming errors (i.e.
dereferenced pointers, etc).  I know in college (mid 90's) I used lint and
"fuzz" to try to check and break programs.  I hope it's progressed further
in 15+ years.

Q2: I'd really like to rewrite this in either VBScript or WScript rather
than the compiled binary.  Does anyone have a simple example code of opening
a socket connection and sending data in VBScript?

Thanks,

Dan

-- 
"Quis custodiet ipsos custodes?" (Who can watch the watchmen?) -- from the
Satires of Juvenal
"I do not fear computers, I fear the lack of them." -- Isaac Asimov (Author)
** *** ***** ******* *********** *************



More information about the OLUG mailing list