aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgi.h.example
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-03-29 21:27:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-03-29 21:27:06 +0000
commitee936d8dd91dc5f460c162e67bceee5ad20bb0c6 (patch)
tree0808a4a31a66cc5b05152367b9c2697cd2c1c1e6 /cgi.h.example
parent4f2ec2ae5810c381eebe5bda1abb21eaf53144dc (diff)
downloadmandoc-ee936d8dd91dc5f460c162e67bceee5ad20bb0c6.tar.gz
mandoc-ee936d8dd91dc5f460c162e67bceee5ad20bb0c6.tar.zst
mandoc-ee936d8dd91dc5f460c162e67bceee5ad20bb0c6.zip
Set the maximum column index in a tbl(7) to the maximum *right* edge
of any cell span, not to the maximum *left* edge, which may be smaller if the last column of the table is only reached by horizontal spans, but not by any regular cell in any row of the table. Otherwise, the algorithm calculating column widths accessed memomy after the end of the colwidth[] array, while it was trying to handle the rightmost column(s). Crash reported by Jason Thorpe <thorpej at NetBSD> via https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=54069 and via Thomas Klausner (wiz@). Christos@ Zoulas sent a (correct, but slightly confusing) patch. The patch i'm committing here is easier to understand.
Diffstat (limited to 'cgi.h.example')
0 files changed, 0 insertions, 0 deletions