delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/11/22/05:31:21

Date: Mon, 22 Nov 93 11:22:54 +0100
From: terra AT diku DOT dk
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: long arguments

Hi!

Two bugs:

1. "gcc bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.c" 
   gives a GP fault at address 62626262 meaning that the file name probably
   overwrites the stack.  The file name should be rejected for being too
   long for MSDOS; it should not crash the system.

2. Passing long argument via the environment (_argc=2, _argv1=...) only
   works for bound executeables, i.e., it does not work when you say
   "go32 myproc"

One question:

   Is there a simple way to detect bound executeables, i.e., detecting if
   an .exe file will take long arguments via the environment?


Morten Welinder
terra AT diku DOT dk

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019