abort() when vterm_new() is initialized with cols=0 and rows=0
Bug #2049308 reported by
metan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvterm |
New
|
Undecided
|
Unassigned |
Bug Description
The vterm_new() function happily creates a vterm instance with cols=0 and rows=0 and the library aborts later on in resize_buffer() when vterm_set_size() is called as it fails to determine new cursor position. I suppose that the case when old_rows == 0 and old_cols == 0 is not handled in the resize_buffer() code.
To post a comment you must log in.