diff options
author | 2012-11-19 22:30:58 +0000 | |
---|---|---|
committer | 2012-11-19 22:30:58 +0000 | |
commit | e0775496049b1f1c4aa21434142ccda12eb3146b (patch) | |
tree | af7d5ed84f6a906599d458f0b7d917f7daee5509 /mandoc.h | |
parent | dc409878671ea1571807749a48b645dd88048385 (diff) | |
download | mandoc-e0775496049b1f1c4aa21434142ccda12eb3146b.tar.gz mandoc-e0775496049b1f1c4aa21434142ccda12eb3146b.tar.zst mandoc-e0775496049b1f1c4aa21434142ccda12eb3146b.zip |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,7 @@ -/* $Id: mandoc.h,v 1.105 2012/11/16 22:21:05 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.106 2012/11/19 22:30:58 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 */ |