segfault opening a 4k file without line ending
Task Info (Flyspray) | |
---|---|
Opened By | Stefan Agner (falstaff) |
Task ID | 72221 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Core |
Version | None |
OS | All |
Opened | 2021-09-23 21:07:05 UTC |
Status | Assigned |
Assignee | Evangelos Foutras (foutrelis) |
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