vdr crashes on HDTV Test Channel

Message ID 200602170419.03002@orion.escape-edv.de
State New
Headers

Commit Message

Oliver Endriss Feb. 17, 2006, 3:19 a.m. UTC
  Andreas Share wrote:
> since yesterday around 16:00 there is an new HDTV testchannel on hotbird 
> 13.0E, 10834 vertical, (TPS HD Test) and everytime vdr passes this 
> transponder vdr restart on my system without any comments. This happend with 
> my Nova Budget used for epg scan, and also with my full featured cards....
> 
> Could anybody confirm this?

You might try something like the attached patch.
It is a temporary solution until there is a better fix...

CU
Oliver
  

Comments

Deti Fliegl Feb. 18, 2006, 9:57 a.m. UTC | #1
Oliver Endriss wrote:
> Andreas Share wrote:
>> since yesterday around 16:00 there is an new HDTV testchannel on hotbird 
>> 13.0E, 10834 vertical, (TPS HD Test) and everytime vdr passes this 
>> transponder vdr restart on my system without any comments. This happend with 
>> my Nova Budget used for epg scan, and also with my full featured cards....
>>
>> Could anybody confirm this?
> 
> You might try something like the attached patch.
> It is a temporary solution until there is a better fix...

Yep, this helps ;-)

Deti
  
Dominique Dumont Feb. 18, 2006, 10:11 a.m. UTC | #2
Oliver Endriss <o.endriss@gmx.de> writes:

> You might try something like the attached patch.
> It is a temporary solution until there is a better fix...

This patch also works with FR3 channel on hot bird.

Thanks
  
Carsten Koch Feb. 18, 2006, 10:16 a.m. UTC | #3
Oliver Endriss wrote:
...
> You might try something like the attached patch.

Thank you very much Oliver.
I applied this patch yesterday.
No more crashes since then.

Carsten.
  

Patch

--- /tmp/vdr-1.3.42/libsi/util.c	Sat May 28 16:15:29 2005
+++ libsi/util.c	Thu Feb 16 22:25:32 2006
@@ -10,6 +10,7 @@ 
  *                                                                         *
  ***************************************************************************/
 
+#include <stdio.h>
 #include <string.h>
 #include "util.h"
 
@@ -120,6 +121,12 @@  CharArray::DataOwnData::~DataOwnData() {
 void CharArray::DataOwnData::assign(const unsigned char*d, unsigned int s) {
    Delete();
    size=s;
+if (size > 100000) {
+	printf ("assign size oops %x\n", size);
+	size = 0;
+	data = NULL;
+	return;
+}
    unsigned char *newdata=new unsigned char[size];
    memcpy(newdata, d, size);
    data=newdata;