plan9port/src/cmd/sam
Russ Cox 3ccd61629b sam: avoid out-of-bounds read in rterm
Usually r->nused < r->nalloc and the read is in bounds.
But it could in theory be right on the line and reading
past the end of the allocation.

Make it safe but preserve as much of the old semantics
as possible. This use of rterm appears to be only for
optimization purposes so the result does not matter
for correctness.
2021-01-14 10:05:50 -05:00
..
address.c
buff.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
cmd.c acme, sam, samterm: remove weird switch usage 2021-01-05 23:38:09 -05:00
disk.c acme, sam: handle >1GB files correctly 2014-03-13 18:46:28 -04:00
error.c sam: freetmpstr instead of free 2018-03-27 15:03:12 +02:00
errors.h Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
file.c fix clang warnings reported by Tuncer Ayaz 2012-10-21 11:25:08 -04:00
io.c sam: report close error 2019-12-19 15:00:58 -05:00
list.c 64-bit fixes 2006-04-20 20:49:00 +00:00
mesg.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
mesg.h Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
mkfile
moveto.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
multi.c 64-bit fixes 2006-04-20 20:49:00 +00:00
parse.h stats: add threadmaybackground 2021-01-05 23:37:04 -05:00
plumb.h Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
rasp.c sam: avoid out-of-bounds read in rterm 2021-01-14 10:05:50 -05:00
regexp.c acme, sam, samterm: remove weird switch usage 2021-01-05 23:38:09 -05:00
sam.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
sam.h stats: add threadmaybackground 2021-01-05 23:37:04 -05:00
shell.c sam: remove backward ?: 2021-01-14 10:01:25 -05:00
string.c
sys.c sam: report close error 2019-12-19 15:00:58 -05:00
unix.c Trivial changes: whitespace and modes. 2020-01-10 14:54:30 +00:00
util.c
xec.c