Commit graph

7 commits

Author SHA1 Message Date
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
Dan Cross
fa325e9b42 Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00
rsc
5369e5ea0c change name 2007-01-12 16:32:11 +00:00
rsc
78439d25f8 Fix 15-year-old sam protocol bug. 2007-01-12 15:57:34 +00:00
rsc
2c0f3733ad 64-bit fixes 2006-04-20 20:49:00 +00:00
rsc
522b0689c3 Reorg 2003-09-30 19:05:50 +00:00
rsc
76193d7cb0 Initial revision 2003-09-30 17:47:42 +00:00