PATCH FILE FOR IOABUF.MAC IN DECUS 11-SP-18 KIT Purpose:- The RT-11 code to flush the TTY (in IOFLSH.MAC) asssumes that the buffer has a guard byte to hold the additional 0200 byte needed by the .PRINT system call. For lines longer than the buffer length (81 chars) that will not be the case and there will be a memory overwrite, usually into the malloc parameters of the following buffer. Method:- Allocate a buffer 2 bytes longer than the nominal size. This patch is in a block of code which is conditionally compiled for non-RSX modes only. Two extra bytes will be allocated for each non-TTY file buffer also and therefore be wasted. Another test could avoid that. Patching:- Patch the IOABUF.MAC file using SLP. The commands are R SLP IOABUF.NEW=IOABUF.OLD,IOABUF.PAT/A/T where IOABUF.OLD is the 11-SP-18 version of IOABUF.MAC, IOABUF.NEW is the result of the patch and IOABUF.PAT is the differences file which begins with line -34 below. -34 ; b1 21-Sep-84 HFR Increase size of terminal buffer for 0200 in $$flsh -51 add #2,r0 ;Space for 0200 byte used by $$flsh ;b1 /