summaryrefslogtreecommitdiff
path: root/libsi
diff options
context:
space:
mode:
Diffstat (limited to 'libsi')
-rw-r--r--libsi/Makefile4
-rwxr-xr-xlibsi/gendescr (renamed from libsi/gendescr.pl)2
-rw-r--r--libsi/si.c4
3 files changed, 6 insertions, 4 deletions
diff --git a/libsi/Makefile b/libsi/Makefile
index 37be2f6..b24eb31 100644
--- a/libsi/Makefile
+++ b/libsi/Makefile
@@ -1,7 +1,7 @@
#
# Makefile for a libsi
#
-# $Id: Makefile 2.1 2010/11/07 13:31:05 kls Exp $
+# $Id: Makefile 2.2 2011/12/04 14:18:38 kls Exp $
### The C++ compiler and options:
@@ -52,4 +52,4 @@ clean:
dist:
tar cvzf libsi.tar.gz -C .. libsi/util.c libsi/si.c libsi/section.c libsi/descriptor.c \
- libsi/util.h libsi/si.h libsi/section.h libsi/descriptor.h libsi/headers.h libsi/Makefile libsi/gendescr.pl
+ libsi/util.h libsi/si.h libsi/section.h libsi/descriptor.h libsi/headers.h libsi/Makefile libsi/gendescr
diff --git a/libsi/gendescr.pl b/libsi/gendescr
index d28890f..8af5c69 100755
--- a/libsi/gendescr.pl
+++ b/libsi/gendescr
@@ -1,6 +1,6 @@
#!/usr/bin/perl
-# $Id: gendescr.pl 2.0 2003/12/13 10:40:53 kls Exp $
+# $Id: gendescr 2.0 2003/12/13 10:40:53 kls Exp $
print "Name (ohne ...Descriptor):";
$name=<STDIN>;
diff --git a/libsi/si.c b/libsi/si.c
index 840b3a1..82123e1 100644
--- a/libsi/si.c
+++ b/libsi/si.c
@@ -6,7 +6,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: si.c 2.4 2011/06/15 21:26:00 kls Exp $
+ * $Id: si.c 2.5 2011/12/04 15:06:18 kls Exp $
* *
***************************************************************************/
@@ -206,6 +206,8 @@ void DescriptorGroup::Add(GroupDescriptor *d) {
array[i]=0;
} else if (length != d->getLastDescriptorNumber()+1)
return; //avoid crash in case of misuse
+ if (length <= d->getDescriptorNumber())
+ return; // see http://www.vdr-portal.de/board60-linux/board14-betriebssystem/board69-c-t-vdr/p1025777-segfault-mit-vdr-1-7-21/#post1025777
array[d->getDescriptorNumber()]=d;
}