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

Rob Townley rob.townley at gmail.com
Sat Feb 28 18:39:17 UTC 2009


On Sat, Feb 28, 2009 at 11:34 AM, Dan Linder <dan at linder.org> wrote:
> 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)
> ** *** ***** ******* *********** *************
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> https://lists.olug.org/mailman/listinfo/olug
>

Why not post the code to sf.net or code.google.com so it can be looked
at.  There are many options to lint, but first i would think compiling
with the latest libraries and c runtimes would be worthy.  i have been
told Python (unlike perl) can make standalone executables - why even
think of vbsh..?



More information about the OLUG mailing list