[konsole] [Bug 432376] Use after free when reflowing

Carlos Alves bugzilla_noreply at kde.org
Sat Apr 10 11:07:30 BST 2021


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

--- Comment #19 from Carlos Alves <cbc.alves at gmail.com> ---
(In reply to Martin Sandsmark from comment #16)
> Created attachment 137326 [details]
> Hacky patch
> 
> I still don't understand the problem, but stumbled upon something that at
> least stops it from crashing: I'm not familiar with QVarLengthArray (or
> understand why it is used there), so I tried changing it to QVector to debug.
> 
> Should probably still find the root cause and verify that we understand why
> it happens so we can make sure we don't just make it harder to actually fix
> the issue.

QVarLengthArray was in use before I changed the code, but I understand what it
does, it creates a stack vector (faster access), it will reserve the space in
the stack (64 LineProperties in this case) and if it needs to use more it will
send to heap memory.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list