diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-31 00:12:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-01-31 00:12:41 +0000 |
commit | 3b15b25a7deff6f634e8233f6f8d96485308c592 (patch) | |
tree | 3db8a0db30d9044a660aacd29afe763a45f05d64 /mdoc.h | |
parent | 36097423ac8b35b42f700e0b63e3b6ac44d88235 (diff) | |
download | mandoc-3b15b25a7deff6f634e8233f6f8d96485308c592.tar.gz |
Use relative offsets instead of absolute pointers for the terminal
font stack. The latter fail after the stack is grown with realloc().
Fixing an assertion failure found by jsg@ with afl some time ago
(test case number 51).
Diffstat (limited to 'mdoc.h')
-rw-r--r-- | mdoc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -366,7 +366,7 @@ struct mdoc_node { enum mdoc_type type; /* AST node type */ enum mdoc_sec sec; /* current named section */ union mdoc_data *norm; /* normalised args */ - const void *prev_font; /* before entering this node */ + int prev_font; /* before entering this node */ /* FIXME: these can be union'd to shave a few bytes. */ struct mdoc_arg *args; /* BLOCK/ELEM */ struct mdoc_node *pending; /* BLOCK */ |