Modify ↓
Ticket #4116 (closed defect: fixed)
Opened 5 years ago
Last modified 5 years ago
OSDTypeText segfault
| Reported by: | danielk | Owned by: | danielk |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.21 |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
I've been trying to reproduce a OSDTypeText::Draw() segfault with debugging symbols enabled, but have been unable to. The problem happened when the draw routine was working with the m_message string.
I'm attaching a patch which uses QDeepCopy and a lock to avoid memory corruption in OSDTypeText. I can't reproduce the crash so it's hard to say if this fixes the problem, but it should.
Attachments
Change History
Changed 5 years ago by danielk
- Attachment 4116-v1.patch added
comment:1 Changed 5 years ago by danielk
Note: See
TracTickets for help on using
tickets.

fix for OSDTypeText memory corruption