aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-24 18:04:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-24 18:04:10 +0000
commit4779d1b30e29ee1f848dbfdced4e200abc5f99a8 (patch)
treea0b812d0eaf3f15f0c65771ab2b0c07c95b9b11e /man.h
parent09a8bdf0f2fa584f57aa5d897c98eae1f48ae719 (diff)
downloadmandoc-4779d1b30e29ee1f848dbfdced4e200abc5f99a8.tar.gz
mandoc-4779d1b30e29ee1f848dbfdced4e200abc5f99a8.tar.zst
mandoc-4779d1b30e29ee1f848dbfdced4e200abc5f99a8.zip
For .RS, we need to save the information how much we actually indented
because negative indents can get truncated, in which case we no longer know how to restore the original indent at the end of the block. This also solves another case of effectively infinite output found by jsg@ with afl, triggered by very large negative indents.
Diffstat (limited to 'man.h')
-rw-r--r--man.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/man.h b/man.h
index 08bfcc8e..f4589fe3 100644
--- a/man.h
+++ b/man.h
@@ -1,4 +1,4 @@
-/* $Id: man.h,v 1.67 2014/12/01 04:05:32 schwarze Exp $ */
+/* $Id: man.h,v 1.68 2014/12/24 18:04:10 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -99,6 +99,7 @@ struct man_node {
struct man_node *body; /* BLOCK node BODY ptr */
const struct tbl_span *span; /* TBL */
const struct eqn *eqn; /* EQN */
+ int aux; /* decoded node data, type-dependent */
};
/* Names of macros. Index is enum mant. */