aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-01-31 00:12:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-01-31 00:12:41 +0000
commit4ac6265c00a615f1c73a9e93009e46865afcdfd9 (patch)
tree84bf9628732ac7eeef73923d3f6f0f0f66bbc5ce /mdoc.h
parent6c75cc18099b6c7db33c10df54276a2baeb97ae3 (diff)
downloadmandoc-4ac6265c00a615f1c73a9e93009e46865afcdfd9.tar.gz
mandoc-4ac6265c00a615f1c73a9e93009e46865afcdfd9.tar.zst
mandoc-4ac6265c00a615f1c73a9e93009e46865afcdfd9.zip
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc.h b/mdoc.h
index 05e23992..428ff239 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.133 2014/12/18 03:10:11 schwarze Exp $ */
+/* $Id: mdoc.h,v 1.134 2015/01/31 00:12:41 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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 */