diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-11-19 22:28:36 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-11-19 22:28:36 +0000 |
commit | f6aefaa94996adb3a94cf829d7d536f2457f186f (patch) | |
tree | 7e9d0f5a59bcbb947052eb699b49cf422ce4233b /usr.bin/mandoc/mandoc.h | |
parent | 714b5995a4bacf5d3b4f69e18b24f338eb290330 (diff) |
Do not crash on stray .Ta macros found outside column lists.
Problem reported by jmc@, thanks.
Diffstat (limited to 'usr.bin/mandoc/mandoc.h')
-rw-r--r-- | usr.bin/mandoc/mandoc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h index 14f32bf00cc..e10d6390d82 100644 --- a/usr.bin/mandoc/mandoc.h +++ b/usr.bin/mandoc/mandoc.h @@ -1,6 +1,7 @@ -/* $Id: mandoc.h,v 1.49 2012/11/16 22:20:40 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.50 2012/11/19 22:28:35 schwarze Exp $ */ /* * 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 */ |