Download as a PDF
Transcript
The input streams for interactive utilities have slightly different characteristics. To avoid overflowing the input buffers on the terminal device, the input was split into random length lines (i.e., terminated by a NEWLINE character) with a mean length of 128 characters. The input length parameter is described in number of lines, so is scaled down by a factor of 100. 4. THE RESULTS AND ANALYSIS Our tests of the UNIX utilities produced a surprising number of programs that would crash or hang. In this section, we summarize these results, group the results by the common programming errors that caused the crashes, iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii i iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii c ci iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii cc Input Streams for Non-Interactive Utilities c ci iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii c # c Character Types NULL character c Input stream size (no. of bytes) c c c c 1 c printable+nonprintable c cc c g 1000 cc c cc c c g 10000 c c 2 c printable+nonprintable c cc c 3 c printable+nonprintable c g 100000 c ic iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii cc c c c 4 c printable cc g 1000 c c c c 5 c printable cc g 10000 c c c ci iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii cc c c g 100000 c c 67 cc printable cc c c 1000 c c c printable+nonprintable c cc c 10000 c c 8 c printable+nonprintable c cc c 9 c printable+nonprintable c 100000 c ci iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii cc c c c 10 c printable cc 1000 c c c c 11 c printable cc 10000 c c ciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 100000 cc i12 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii c printable c c c cc Table 3a: Variations of Input Data Streams for Testing Utilities (these were used for the non-interactive utility programs) iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii c ci iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii cc Input Streams for Interactive Utilities c ci iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii c # c Character Types NULL character c Input stream size (no. of strings) c c c c 1 c printable+nonprintable c cc c g 10 cc c cc c c g 100 c c 2 c printable+nonprintable c cc c 3 c printable+nonprintable c g 1000 c ci iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii cc c c c 4 c printable cc g 10 c c c c 5 c printable cc g 100 c c c ci iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii cc c c g 1000 c c 67 cc printable cc c c 10 c c c printable+nonprintable c cc c 100 c c 8 c printable+nonprintable c cc c 9 c printable+nonprintable c 1000 c ci iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii cc c c c 10 c printable cc 10 c c c c 11 c printable cc 100 c c cciciiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii c c c 12 printable 1000 iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiic cc Table 3b: Variations of Input Data Streams for Testing Utilities (these were used for the interactive utility programs) - 10 -