summaryrefslogtreecommitdiffstats
path: root/hack/hack.h
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-06-29 23:05:33 +0000
committerdholland <dholland@NetBSD.org>2009-06-29 23:05:33 +0000
commitd00a8d1e94456d45abbb7c94cd846661735277ab (patch)
tree5329ba2218576dbc5e41ed33677391627f69a23a /hack/hack.h
parentfe1c4f849dd6242072352483d84870c6fcc974a7 (diff)
downloadbsdgames-darwin-d00a8d1e94456d45abbb7c94cd846661735277ab.tar.gz
bsdgames-darwin-d00a8d1e94456d45abbb7c94cd846661735277ab.tar.zst
bsdgames-darwin-d00a8d1e94456d45abbb7c94cd846661735277ab.zip
Fix two serious string-handling bugs (one exploitable, one probably
exploitable) and also add proper checking/paranoia in several other places.
Diffstat (limited to 'hack/hack.h')
-rw-r--r--hack/hack.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hack/hack.h b/hack/hack.h
index 825daa72..21a94c0c 100644
--- a/hack/hack.h
+++ b/hack/hack.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.h,v 1.12 2009/06/07 21:04:54 dholland Exp $ */
+/* $NetBSD: hack.h,v 1.13 2009/06/29 23:05:33 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -202,7 +202,7 @@ extern const char *const traps[];
extern char SAVEF[];
extern char fut_geno[60]; /* idem */
extern char genocided[60]; /* defined in Decl.c */
-extern char lock[];
+extern char lock[PL_NSIZ + 4];
extern const char mlarge[];
extern char morc;
extern const char nul[];