Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Aborted - a test case



Am Mittwoch, 15. September 2004 22:14 schrieb Stefan Huelswitt:
> On 15 Sep 2004 Marcel Wiesweg <marcel.wiesweg@gmx.de> wrote:
> > The patch attached tries to fix the problem without C++ exceptions. A
> > validity flag is used to indicate an error. As soon as the flag is set,
> > the loop structures will not return any more data, which should be enough
> > to effectively stop processing the section.
> > The size checks are done at a few "strategic" points, so this does not
> > emulate an MMU, and this is not vsftpd, but it seems to work. I put some
> > thought in it but I cannot promise anything.
>
> At which point do I have to insert a printf to see if the code
> actually caught an error?

The flag is set at CharArray::checkSize in util.h. This is called via 
Object::checkSize in si.c.
At any time, e.g. in VDR's functions reading the information, you can check 
the status with isValid().

>
> Regards.




Home | Main Index | Thread Index