Project

General

Profile

Actions

Bug #13608

closed

tem: use dynamic array for tab stops

Added by Toomas Soome about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The current tabstops are stored in fixed size array of 40 stops, this means max terminal width 8 * 40. With small font and high-resolution display, we will overflow tab stops array and corrupt memory.

(re)allocate array, based on terminal width, when terminal is re-initialized

Testing done: build/install/boot

Actions #1

Updated by Electric Monk about 1 year ago

  • Gerrit CR set to 1312
Actions #2

Updated by Electric Monk about 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 835b861bfa01968a312484d1d7bd1798865ea383

commit  835b861bfa01968a312484d1d7bd1798865ea383
Author: Toomas Soome <tsoome@me.com>
Date:   2021-03-12T07:04:23.000Z

    13608 tem: use dynamic array for tab stops
    Reviewed by: Yuri Pankov <yuripv@yuripv.dev>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF