• src/conio/bitmap_con.c cterm.c

    From Deuc¿@VERT to Git commit to main/sbbs/master on Thursday, February 08, 2024 23:07:40
    https://gitlab.synchro.net/main/sbbs/-/commit/3dfa12a6cacf3f1289f8c66c
    Modified Files:
    src/conio/bitmap_con.c cterm.c
    Log Message:
    Fix crash found by vttest.

    If DL was passed a parameter equal to or greater than the number of
    lines from the current line to the last line in the region, it would
    try to move a negative-sized box up, which resulted in a crash.

    This fixes that three ways:
    1) Do not allow moving boxes with negative X/Y sizes
    2) In dellines, clamp the lines to the number that could be deleted
    3) Don't move lines up of all rest of the lines are being deleted

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¿@VERT to Git commit to main/sbbs/master on Wednesday, March 18, 2026 16:58:48
    https://gitlab.synchro.net/main/sbbs/-/commit/67f034daa22d0cbcb6d5e65a
    Modified Files:
    src/conio/bitmap_con.c cterm.c
    Log Message:
    Clear hyperlink_id on all erase/clear/scroll-gap operations

    Audit of every cell-clearing path found 9 sites that set ch,
    legacy_attr, fg, bg, font but never cleared hyperlink_id, leaving
    stale hyperlink associations on erased cells.

    cterm.c: cterm_clreol (EL/ED), cterm_clrblk, clear2bol (EL 1),
    SL/SR blank columns, ECH blank fill, DECIC/DECDC blank columns.

    bitmap_con.c: set_vmem_cell (used by ciolib clreol/clrscr for
    ED mode 2 and cterm_clearscreen).

    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net