Opened 17 years ago
Closed 17 years ago
Last modified 17 years ago
#6560 closed patch (fixed)
Segfault in MediaMonitor::SetCDSpeed due to [20226]
| Reported by: | Owned by: | Isaac Richards | |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | MythTV - General | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
[20226] creates MythCDROM *cd but doesn't check for validity before calling setSpeed. MythCDROM::get returns NULL on unimplemented platforms, resulting in segfault here. Patch checks (cd != NULL)
Attachments (1)
Change History (4)
by , 17 years ago
| Attachment: | mythmediamon.patch added |
|---|
comment:1 by , 17 years ago
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 17 years ago
I ran into this while trying to play a DVD in win32, where MythCDROM hasn't been implemented and apparently isn't needed for DVD.
BTW, looking over the changeset, I believe there should be a return inside the "if (cd)" section, so that the new verbose outputs only on error.
Note:
See TracTickets
for help on using tickets.

(In [20591]) Logic error in setSpeed(). Thanks Jeff. Refs #6560.