From fdfe74e5bb54561665fe4053cade83e3cddb307b Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Fri, 19 May 2006 20:32:24 +0000 Subject: [PATCH] Security --- recplayer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/recplayer.c b/recplayer.c index 18d5c2d..c99f04d 100644 --- a/recplayer.c +++ b/recplayer.c @@ -202,6 +202,12 @@ ULONG RecPlayer::frameNumberFromPosition(ULLONG position) { if (!indexFile) return 0; + if (position >= totalLength) + { + log->log("RecPlayer", Log::DEBUG, "Client asked for data starting past end of recording!"); + return 0; + } + uchar segmentNumber; for(segmentNumber = 1; segmentNumber < 255; segmentNumber++) { -- 2.39.5