diff options
author | ru <ru@FreeBSD.org> | 2002-02-08 11:57:43 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-02-08 11:57:43 +0000 |
commit | d9ac691aac55473b5bc9945504b2c0daf554deee (patch) | |
tree | 76607fdd6b85fb45b664dc3b4e1977cf070b8b84 /gnu/usr.bin/rcs | |
parent | 3ecf840b663cab8525dd2ead8d4dabed294f14e8 (diff) | |
download | FreeBSD-src-d9ac691aac55473b5bc9945504b2c0daf554deee.zip FreeBSD-src-d9ac691aac55473b5bc9945504b2c0daf554deee.tar.gz |
Fixed RCSLOCALID buffer overflow (by making an overflow condition fatal).
Spotted by: John Johnson <bio.metrix@gte.net>
Diffstat (limited to 'gnu/usr.bin/rcs')
-rw-r--r-- | gnu/usr.bin/rcs/lib/rcskeys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/rcs/lib/rcskeys.c b/gnu/usr.bin/rcs/lib/rcskeys.c index db6f9c9..378f57d 100644 --- a/gnu/usr.bin/rcs/lib/rcskeys.c +++ b/gnu/usr.bin/rcs/lib/rcskeys.c @@ -167,7 +167,7 @@ setRCSLocalId(string) next = copy; key = strtok(next, "="); if (strlen(key) > keylength) - error("LocalId is too long"); + faterror("LocalId is too long"); VOID strcpy(local_id, key); Keyword[LocalId] = local_id; |