[vdr] Different between '#define MAXOSDAREAS 16' and '#define MAXNUMWINDOWS 7'

Udo Richter udo_richter at gmx.de
Sat Oct 1 19:31:32 CEST 2005


Klaus Schmidinger wrote:
> That's what the CanHandleAreas() function is for.
> cOsd::SetAreas() calls the CanHandleAreas() of the derived
> cOsd class, and in there cDvbOsd checks wheter (NumAreas > MAXNUMWINDOWS).

Yes, I did understand that. But the generic cOsd::CanHandleAreas() does 
not check for NumAreas > MAXOSDAREAS. If some cMyOsd can handle 32 
areas, and only checks for NumAreas > 32, VDR may crash.

Not a realistic scenario though. ;)

Cheers,

Udo




More information about the vdr mailing list