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 | 4ac6265c00a615f1c73a9e93009e46865afcdfd9 (patch) | |
tree | 84bf9628732ac7eeef73923d3f6f0f0f66bbc5ce /term.h | |
parent | 6c75cc18099b6c7db33c10df54276a2baeb97ae3 (diff) | |
download | mandoc-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 'term.h')
-rw-r--r-- | term.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.110 2014/12/23 13:48:57 schwarze Exp $ */ +/* $Id: term.h,v 1.111 2015/01/31 00:12:41 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -126,10 +126,9 @@ int term_vspan(const struct termp *, const struct roffsu *); size_t term_strlen(const struct termp *, const char *); size_t term_len(const struct termp *, size_t); -const enum termfont *term_fontq(struct termp *); void term_fontpush(struct termp *, enum termfont); void term_fontpop(struct termp *); -void term_fontpopq(struct termp *, const enum termfont *); +void term_fontpopq(struct termp *, int); void term_fontrepl(struct termp *, enum termfont); void term_fontlast(struct termp *); |