]> Skullheadx's Git Forge - st.git/commit
st: guard tsetdirt() against zero-sized terminal
authorMilos Nikic <nikic.milos@gmail.com>
Thu, 15 Jan 2026 05:00:32 +0000 (21:00 -0800)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 16 Jan 2026 13:12:07 +0000 (14:12 +0100)
commit688f70add0d1da8a416bf7df763328d694a24a3a
treedff22bfe5370b282d60bdd3523812a48da99c500
parent0723b7e39e73b2bcfce047b047f6e795d6184028
st: guard tsetdirt() against zero-sized terminal

tsetdirt() assumes term.row > 0. During early init or
resize paths this may not hold, leading to out-of-bounds
access. Bail out early if there are no rows.
st.c