https://bugs.kde.org/show_bug.cgi?id=486623

            Bug ID: 486623
           Summary: Opening this 909kb file in Kate causes it to leak
                    memory and potentially crash the entire system
    Classification: Applications
           Product: kate
           Version: 24.02.2
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: kwrite
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: i...@fdossena.com
  Target Milestone: ---

Created attachment 169211
  --> https://bugs.kde.org/attachment.cgi?id=169211&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to