Project

General

Profile

Actions

Bug #179

closed

osdteletext causes segmentation fault with some input devices

Added by Mreimer over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/19/2009
Due date:
% Done:

100%

Estimated time:

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

Actions

Also available in: Atom PDF