[6913] in Athena Bugs

home help back first fref pref prev next nref lref last post

/bin/ls

daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Fri Jan 18 04:16:12 1991

To: bugs@ATHENA.MIT.EDU
Date: Fri, 18 Jan 91 04:15:56 EST
From: John Carr <jfc@ATHENA.MIT.EDU>


If ls is exec-ed with argv[0] = NULL, it prints

	ls: out of memory

The first statement in the program decrements argc, so it tries to
allocate space for -1 filename arguments.  This fails.


home help back first fref pref prev next nref lref last post