From 4ac6265c00a615f1c73a9e93009e46865afcdfd9 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sat, 31 Jan 2015 00:12:41 +0000 Subject: 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). --- mdoc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mdoc.h') 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 * @@ -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 */ -- cgit v1.2.3-56-ge451