[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61417] [tbl] core dump when further spanning a first-row (invalid)
From: |
G. Branden Robinson |
Subject: |
[bug #61417] [tbl] core dump when further spanning a first-row (invalid) downward span |
Date: |
Sat, 6 Nov 2021 01:39:48 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Update of bug #61417 (project groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.23.0
_______________________________________________________
Follow-up Comment #2:
commit 2944e475dc087465126dfc32cfaaf3f803d0e0c0
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Thu Nov 4 05:26:40 2021 +1100
[tbl]: Fix Savannah #61417.
* src/preproc/tbl/table.cpp (table::add_entry): If we see a '\^' entry
on the first row of a table, it's invalid, but we need to create an
empty entry in its place. Otherwise, someone can put another '\^'
right below the one on the first row, creating a reference to a
nonexistent table entry and provoking a SEGV. Issue an error
diagnostic (distinct from the one in `do_vspan()`), create the entry,
and skip `do_vspan()` (given a '^' in a first-row definition, it
issues an error diagnostic and returns early, which suffices).
Problem appears to date back to groff 1.02 (June 1991) at the latest.
Fixes <https://savannah.gnu.org/bugs/?61417>.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61417>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/