summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2013-03-09 12:27:43 +0100
committerLars Hanisch <dvb@flensrocker.de>2013-03-09 12:27:43 +0100
commit77b6fc6ebf2b301cfdd8c5cbb14eafe38cfa533c (patch)
treedd636c19863abbc6526dcf6ef33866341064e977
parent5fe51b1a6dcd9653d0d5cc2f7fee083c99c1e94c (diff)
downloadvdr-plugin-dynamite-0.1.4.tar.gz
vdr-plugin-dynamite-0.1.4.tar.bz2
found a stack overflow in dynamite patchv0.1.4
-rw-r--r--dynamite.c2
-rw-r--r--patches/vdr-1.7.39-dynamite+externalci+rotorng.patch13
-rw-r--r--patches/vdr-1.7.39-dynamite+externalci.patch13
-rw-r--r--patches/vdr-1.7.39-dynamite.patch13
4 files changed, 7 insertions, 34 deletions
diff --git a/dynamite.c b/dynamite.c
index e20bdfd..45ba646 100644
--- a/dynamite.c
+++ b/dynamite.c
@@ -11,7 +11,7 @@
#include "monitor.h"
#include "status.h"
-static const char *VERSION = "0.1.3";
+static const char *VERSION = "0.1.4";
static const char *DESCRIPTION = tr("attach/detach devices on the fly");
static const char *MAINMENUENTRY = NULL;
diff --git a/patches/vdr-1.7.39-dynamite+externalci+rotorng.patch b/patches/vdr-1.7.39-dynamite+externalci+rotorng.patch
index 948e6f7..229a5d8 100644
--- a/patches/vdr-1.7.39-dynamite+externalci+rotorng.patch
+++ b/patches/vdr-1.7.39-dynamite+externalci+rotorng.patch
@@ -38,7 +38,7 @@ index 74e0270..818ea29 100644
class cTPDU;
diff --git a/device.c b/device.c
-index ca897b0..69f941e 100644
+index ca897b0..3d87375 100644
--- a/device.c
+++ b/device.c
@@ -69,12 +69,22 @@ int cDevice::currentChannel = 1;
@@ -291,16 +291,7 @@ index ca897b0..69f941e 100644
if (Pid) {
cMutexLock MutexLock(&mutexReceiver);
for (int i = 0; i < MAXRECEIVERS; i++) {
-@@ -1713,6 +1794,8 @@ void cDevice::DetachAll(int Pid)
-
- void cDevice::DetachAllReceivers(void)
- {
-+ if (parentDevice)
-+ return parentDevice->DetachAllReceivers();
- cMutexLock MutexLock(&mutexReceiver);
- for (int i = 0; i < MAXRECEIVERS; i++)
- Detach(receiver[i]);
-@@ -1785,3 +1868,25 @@ uchar *cTSBuffer::Get(void)
+@@ -1785,3 +1866,25 @@ uchar *cTSBuffer::Get(void)
}
return NULL;
}
diff --git a/patches/vdr-1.7.39-dynamite+externalci.patch b/patches/vdr-1.7.39-dynamite+externalci.patch
index a214f9f..cc98bca 100644
--- a/patches/vdr-1.7.39-dynamite+externalci.patch
+++ b/patches/vdr-1.7.39-dynamite+externalci.patch
@@ -38,7 +38,7 @@ index 74e0270..818ea29 100644
class cTPDU;
diff --git a/device.c b/device.c
-index ca897b0..69f941e 100644
+index ca897b0..3d87375 100644
--- a/device.c
+++ b/device.c
@@ -69,12 +69,22 @@ int cDevice::currentChannel = 1;
@@ -291,16 +291,7 @@ index ca897b0..69f941e 100644
if (Pid) {
cMutexLock MutexLock(&mutexReceiver);
for (int i = 0; i < MAXRECEIVERS; i++) {
-@@ -1713,6 +1794,8 @@ void cDevice::DetachAll(int Pid)
-
- void cDevice::DetachAllReceivers(void)
- {
-+ if (parentDevice)
-+ return parentDevice->DetachAllReceivers();
- cMutexLock MutexLock(&mutexReceiver);
- for (int i = 0; i < MAXRECEIVERS; i++)
- Detach(receiver[i]);
-@@ -1785,3 +1868,25 @@ uchar *cTSBuffer::Get(void)
+@@ -1785,3 +1866,25 @@ uchar *cTSBuffer::Get(void)
}
return NULL;
}
diff --git a/patches/vdr-1.7.39-dynamite.patch b/patches/vdr-1.7.39-dynamite.patch
index ddfcddc..8432580 100644
--- a/patches/vdr-1.7.39-dynamite.patch
+++ b/patches/vdr-1.7.39-dynamite.patch
@@ -25,7 +25,7 @@ index 74e0270..d38e2dd 100644
class cTPDU;
diff --git a/device.c b/device.c
-index ca897b0..69f941e 100644
+index ca897b0..3d87375 100644
--- a/device.c
+++ b/device.c
@@ -69,12 +69,22 @@ int cDevice::currentChannel = 1;
@@ -278,16 +278,7 @@ index ca897b0..69f941e 100644
if (Pid) {
cMutexLock MutexLock(&mutexReceiver);
for (int i = 0; i < MAXRECEIVERS; i++) {
-@@ -1713,6 +1794,8 @@ void cDevice::DetachAll(int Pid)
-
- void cDevice::DetachAllReceivers(void)
- {
-+ if (parentDevice)
-+ return parentDevice->DetachAllReceivers();
- cMutexLock MutexLock(&mutexReceiver);
- for (int i = 0; i < MAXRECEIVERS; i++)
- Detach(receiver[i]);
-@@ -1785,3 +1868,25 @@ uchar *cTSBuffer::Get(void)
+@@ -1785,3 +1866,25 @@ uchar *cTSBuffer::Get(void)
}
return NULL;
}