From de5ee5b4e75f9333ff45e09f77330033004165c8 Mon Sep 17 00:00:00 2001 From: forsyth Date: Sun, 30 Aug 2009 16:19:16 +0100 Subject: 20090830-1619 --- CHANGES | 2 ++ appl/cmd/ed.b | 2 +- dis/ed.dis | Bin 12050 -> 12053 bytes include/version.h | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 7642b456..64e74883 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +20090830 + check subexp length in ed [cmbrannon79] 20090825 add netmkaddr call to /appl/cmd/ftpfs.b; send errors to standard error 20090824 diff --git a/appl/cmd/ed.b b/appl/cmd/ed.b index f0ad6310..8c051086 100644 --- a/appl/cmd/ed.b +++ b/appl/cmd/ed.b @@ -1314,7 +1314,7 @@ dosub() } if(c == ESCFLG && (c = rhsbuf[rp++]) >= '1' && c < MAXSUB+'0') { n = c-'0'; - if(subexp != nil && subexp[n].rsp >= 0 && subexp[n].rep >= 0) { + if(n < len subexp && subexp[n].rsp >= 0 && subexp[n].rep >= 0) { sp = place(sp, subexp[n].rsp, subexp[n].rep); continue; } diff --git a/dis/ed.dis b/dis/ed.dis index 6e6f4ebf..447a3603 100644 Binary files a/dis/ed.dis and b/dis/ed.dis differ diff --git a/include/version.h b/include/version.h index 67d54a62..6a7cb2fc 100644 --- a/include/version.h +++ b/include/version.h @@ -1 +1 @@ -#define VERSION "Fourth Edition (20090825)" +#define VERSION "Fourth Edition (20090830)" -- cgit v1.2.3