awk bug

utzoo!decvax!ittvax!swatt utzoo!decvax!ittvax!swatt
Wed Nov 25 13:47:30 AEST 1981


Wed Nov 25 13:19:47 EST 1981 (reported by cox)
[ ]	The following script causes awk to core dump with a bus
	error:
	---------------------------------
	# attempt to produce awk core dump
	{
		print $0 >data0
	}
	---------------------------------
	The fix is:
	---------------------------------
cp /usr/src/cmd/awk/run.c /tmp/upd.$$.tmp ; chmod +w /tmp/upd.$$.tmp
ed - /tmp/upd.$$.tmp <<\!xxFUNNYxx
848c
		if (files[i].fp && strcmp(x.optr->sval, files[i].fname) == 0)



More information about the Comp.bugs.4bsd.ucb-fixes mailing list