diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-11-03 14:02:01 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-11-03 14:02:01 +0100 |
commit | 39f6b6fc6b93609c5ef5bcccdc3afd00ded7402d (patch) | |
tree | e9be15f3401ecad951fb1d5d54032a60e10b1cbd | |
parent | 0b5085f4f00618a96eaaba97c05dd1c5177b5e42 (diff) | |
download | vdr-39f6b6fc6b93609c5ef5bcccdc3afd00ded7402d.tar.gz vdr-39f6b6fc6b93609c5ef5bcccdc3afd00ded7402d.tar.bz2 |
Fixed a possible access to uninitialized data in cEIT::cEIT()
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | eit.c | 6 |
3 files changed, 6 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 46a8eb42..6cfc11c0 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -2919,6 +2919,7 @@ Henning Heinold <heinold@inf.fu-berlin.de> Dominik Strasser <dominik@die-strassers.de> for making a cRemote be removed from the Remotes list in case its initialization failed + for reporting a possible access to uninitialized data in cEIT::cEIT() Joerg Bornkessel <hd_brummy@gentoo.org> for adding LDFLAGS to the linker calls in the Makefiles @@ -8051,3 +8051,5 @@ Video Disk Recorder Revision History - In the "Select folder" menu pressing Ok now selects the folder, even if this is a folder that contains sub folders (marked with "..."). To open such a folder you can press the Red key. +- Fixed a possible access to uninitialized data in cEIT::cEIT() (reported by Dominik + Strasser). @@ -8,7 +8,7 @@ * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>. * - * $Id: eit.c 3.2 2013/10/12 11:10:11 kls Exp $ + * $Id: eit.c 3.3 2013/11/03 13:55:00 kls Exp $ */ #include "eit.h" @@ -54,8 +54,8 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo bool Modified = false; time_t SegmentStart = 0; time_t SegmentEnd = 0; - struct tm tm_r; - struct tm t = *localtime_r(&Now, &tm_r); // this initializes the time zone in 't' + struct tm t = { 0 }; + localtime_r(&Now, &t); // this initializes the time zone in 't' SI::EIT::Event SiEitEvent; for (SI::Loop::Iterator it; eventLoop.getNext(SiEitEvent, it); ) { |