summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-11-04 13:19:49 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-11-04 13:19:49 +0100
commit23ee5bb4da71c7fa419bc8ad14f4d896ed6e6f2d (patch)
treec86b020078f2e7afa7d5b3759b35c0465e11e594
parent697261c981fa877b94661d310c07b216ca708f4f (diff)
downloadvdr-23ee5bb4da71c7fa419bc8ad14f4d896ed6e6f2d.tar.gz
vdr-23ee5bb4da71c7fa419bc8ad14f4d896ed6e6f2d.tar.bz2
Fixed a NULL pointer access with the cUnbufferedFile when a replay session runs all the way until the end of the recording
-rw-r--r--CONTRIBUTORS2
-rw-r--r--HISTORY5
-rw-r--r--config.h6
-rw-r--r--recording.c4
4 files changed, 12 insertions, 5 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index ab323d2c..31822b99 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1319,6 +1319,8 @@ Mogens Elneff <mogens@elneff.dk>
Joachim Wilke <vdr@joachim-wilke.de>
for reporting missing calls to cStatus::MsgOsdClear() in cSkins::Message()
+ for fixing a NULL pointer access with the cUnbufferedFile when a replay session
+ runs all the way until the end of the recording
Sascha Klek <sklek@gmx.de>
for reporting a problem with the '0' key in the "Day" item of the "Timers" menu
diff --git a/HISTORY b/HISTORY
index be93902d..05eb1e9a 100644
--- a/HISTORY
+++ b/HISTORY
@@ -3912,3 +3912,8 @@ Video Disk Recorder Revision History
- Fixed the cFilter example in PLUGINS.html (reported by Patrick Fischer).
- The new class cUnbufferedFile is used for the recording files to avoid
trashing the file system cache (based on a patch by Ralf Müller).
+
+2005-11-04: Version 1.3.36
+
+- Fixed a NULL pointer access with the cUnbufferedFile when a replay session runs
+ all the way until the end of the recording (thanks to Joachim Wilke).
diff --git a/config.h b/config.h
index 9b17ad45..9e1d78ac 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 1.231 2005/10/08 08:48:38 kls Exp $
+ * $Id: config.h 1.232 2005/11/04 13:17:42 kls Exp $
*/
#ifndef __CONFIG_H
@@ -19,8 +19,8 @@
#include "i18n.h"
#include "tools.h"
-#define VDRVERSION "1.3.35"
-#define VDRVERSNUM 10335 // Version * 10000 + Major * 100 + Minor
+#define VDRVERSION "1.3.36"
+#define VDRVERSNUM 10336 // Version * 10000 + Major * 100 + Minor
#define MAXPRIORITY 99
#define MAXLIFETIME 99
diff --git a/recording.c b/recording.c
index c90e54da..517aea0c 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.122 2005/10/31 12:27:58 kls Exp $
+ * $Id: recording.c 1.123 2005/11/04 13:17:20 kls Exp $
*/
#include "recording.h"
@@ -1342,7 +1342,7 @@ cUnbufferedFile *cFileName::SetOffset(int Number, int Offset)
// found a non existing file suffix
}
if (Open() >= 0) {
- if (!record && Offset >= 0 && file->Seek(Offset, SEEK_SET) != Offset) {
+ if (!record && Offset >= 0 && file && file->Seek(Offset, SEEK_SET) != Offset) {
LOG_ERROR_STR(fileName);
return NULL;
}