mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed a possible access to characters after the terminating zero of strings in cDoneRecordings::Contains(), in case there are fuzzy characters at the end of a string
This commit is contained in:
parent
4d5cbaf57d
commit
ac4da6e380
3
HISTORY
3
HISTORY
@ -9726,3 +9726,6 @@ Video Disk Recorder Revision History
|
|||||||
(with help from Helmut Binder).
|
(with help from Helmut Binder).
|
||||||
- If an error occurs while recording, the respective entry in the list of recordings is
|
- If an error occurs while recording, the respective entry in the list of recordings is
|
||||||
now updated immediately (reported by Matthias Senzel).
|
now updated immediately (reported by Matthias Senzel).
|
||||||
|
- Fixed a possible access to characters after the terminating zero of strings in
|
||||||
|
cDoneRecordings::Contains(), in case there are fuzzy characters at the end of a
|
||||||
|
string.
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: recording.c 5.9 2021/05/25 20:09:29 kls Exp $
|
* $Id: recording.c 5.10 2021/06/19 15:34:38 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "recording.h"
|
#include "recording.h"
|
||||||
@ -3150,6 +3150,8 @@ bool cDoneRecordings::Contains(const char *Title) const
|
|||||||
while (*s && *t) {
|
while (*s && *t) {
|
||||||
s = SkipFuzzyChars(s);
|
s = SkipFuzzyChars(s);
|
||||||
t = SkipFuzzyChars(t);
|
t = SkipFuzzyChars(t);
|
||||||
|
if (!*s || !*t)
|
||||||
|
break;
|
||||||
if (*s != *t)
|
if (*s != *t)
|
||||||
break;
|
break;
|
||||||
s++;
|
s++;
|
||||||
|
Loading…
Reference in New Issue
Block a user