Bug #179
closedosdteletext causes segmentation fault with some input devices
100%
Description
I already reported this via mail to Tobias Grimm, but I decided to also add this as Issue, here.
I'm using a netceiver, using the mcli plugin, provided by Reel.
While trying to get the VDR/Netceiver combination to work, I got segmentation faults from time to time, which were gone as soon as I disabled the osdteletext plugin.
The reason for those crashes is in the txtrecv.c file -> cTxtReceiver::Receive. Here, you get a buffer size from VDR and you add the number "60" to it. This works as long as the buffer really is 60 bytes bigger as VDR told you. At least with the mcli plugin and maybe even with other input plugins/devices, this isn't the case.
I attached a patch, which drops the "+60". This fix makes osdteletext work with mcli and Netceiver. I also tried with a Full Featured DVB card in my VDR and it works there, too.
Files
Updated by etobi about 15 years ago
- Status changed from New to Assigned
- Assignee set to etobi
Sorry, totally forgot this! I'll commit your patch soon and make a new release.
Updated by etobi about 15 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
Applied in changeset 15bba0c7d4107ae4b3f7f5768ff285144735cd5f.