summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-11-19 22:30:58 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-11-19 22:30:58 +0000
commite72db3dd30f49f9ba66d3343bd9b16314f1a8a71 (patch)
tree8974505c93691ab13914eaa1cc57cb7c64e2703f /mandoc.h
parentf54547a9a73ceac08c89c5a0084f6fcb01900892 (diff)
downloadmandoc-e72db3dd30f49f9ba66d3343bd9b16314f1a8a71.tar.gz
Do not crash on stray .Ta macros found outside column lists.
Problem reported by jmc@, thanks.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mandoc.h b/mandoc.h
index 1a53ea11..774f2481 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,6 +1,7 @@
/* $Id$ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
+ * Copyright (c) 2012 Ingo Schwarze <schwarze@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -135,6 +136,7 @@ enum mandocerr {
MANDOCERR_MACRO, /* skipping unknown macro */
MANDOCERR_REQUEST, /* NOT IMPLEMENTED: skipping request */
MANDOCERR_ARGCOUNT, /* argument count wrong */
+ MANDOCERR_STRAYTA, /* skipping column outside column list */
MANDOCERR_NOSCOPE, /* skipping end of block that is not open */
MANDOCERR_SCOPEBROKEN, /* missing end of block */
MANDOCERR_SCOPEEXIT, /* scope open on exit */