FS#72221 - [vi] segfault opening a 4k file without line ending

Attached to Project: Arch Linux
Opened by Stefan Agner (falstaff) - Thursday, 23 September 2021, 21:07 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:14 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
It seems that vi crashes when opening a 4k file without line ending.

Additional info:
* 1:070224-5
* "exact4kfile" [Incomplete last line] 1 line, 4096 characters (4096 null) Segmentation fault (core dumped)
* It seems upstream is not affected (tested with ex-050325.tar.bz2)

Steps to reproduce:

dd if=/dev/zero of=exact4kfile bs=1 count=4096
vi exact4kfile
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:14 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/vi/issues/1

Loading...