Bug in "less"

Mark Nudelman mark at UNIX386.Convergent.COM
Tue Sep 20 06:53:59 AEST 1988


There is a rather serious bug in the version of "less" which was recently
posted to comp.sources.unix.  In the file "os.c", line 204 reads:

		cmd = calloc(strlen(p)+12);

This should be changed to:

		cmd = calloc(strlen(p)+strlen(filename)+12, sizeof(char));

This bug was due to a last minute change, and I apologize for any
inconvenience this may have caused.


Mark Nudelman
{sun,decwrl,ihnp4!hplabs}!pyramid!ctnews!mitisft!markn



More information about the Comp.sources.bugs mailing list