Bug 486623 - Opening this 909kb file in Kate causes it to leak memory and potentially crash the entire system
Summary: Opening this 909kb file in Kate causes it to leak memory and potentially cras...
Status: RESOLVED DUPLICATE of bug 486134
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 24.02.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-05 12:00 UTC by Federico Dossena
Modified: 2024-05-05 17:24 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
File that causes the leak (909.23 KB, application/octet-stream)
2024-05-05 12:00 UTC, Federico Dossena
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Federico Dossena 2024-05-05 12:00:33 UTC
Created attachment 169211 [details]
File that causes the leak

SUMMARY
The attached file is a config file from the game Colin McRae Rally 2005. I thought it would just be a text file so I tried opening it in Kate, it turned out to be a binary file, but instead of simply showing garbled text, Kate locks up, starts leaking memory and eventually gets killed by OOM (or crashes the whole system if you don't have OOM).

STEPS TO REPRODUCE
1. Open Kate (or KWrite or any application like Ark that previews unknown files as text)
2. Drag the attached file into it
3. Watch RAM usage

OBSERVED RESULT
Kate freezes and fills up the entire memory

EXPECTED RESULT
Garbled text

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux (Kernel 6.8.9-arch1-1)
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Comment 1 Christoph Cullmann 2024-05-05 17:24:39 UTC
Sorry for that, there was as regression in the file loading.

*** This bug has been marked as a duplicate of bug 486134 ***