Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Experience varies directly with equipment ruined.


dovenet / Synchronet Programming / src/conio/bitmap_con.c cterm.c

SubjectAuthor
o src/conio/bitmap_con.c cterm.cDeuc?

1
src/conio/bitmap_con.c cterm.c

<65C5CF3C.48769.syncprog@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=2788&group=DOVE-Net.Synchronet_Programming#2788

  copy link   Newsgroups: DOVE-Net.Synchronet_Programming
From: deuc?@VERT (Deuc?)
To: Git commit to main/sbbs/master
Subject: src/conio/bitmap_con.c cterm.c
Message-ID: <65C5CF3C.48769.syncprog@vert.synchro.net>
Date: Thu, 8 Feb 2024 23:07:40 -0800
X-Comment-To: Git commit to main/sbbs/master
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Programming
X-FTN-PID: Synchronet 3.20a-Linux master/06844588c Feb 8 2024 GCC 12.2.0
X-FTN-MSGID: 48769.syncprog@1:103/705 2a2bc3bd
X-FTN-CHRS: CP437 2
WhenImported: 20240208230740-0800 41e0
WhenExported: 20240209034812-0800 41e0
ExportedFrom: VERT syncprog 48769
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Deuc? - Fri, 9 Feb 2024 07:07 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor