[coyotos-dev] capidl loop
Charles Landau
clandau at macslab.com
Wed Nov 28 12:08:13 EST 2007
>On Tue, 2007-11-27 at 13:12 -0800, Charles Landau wrote:
>> Capidl goes into an infinite loop parsing the following:
>>
>> /** if a > b */
>>
>> 1. It should complain rather than loop.
>>
>> 2. The capidl langauge specification should say that doc comments
>> must be valid html, if that is the case.
>
>Thank you for the report. Is the example input from one of our files?
No, I was trying to use it on a CapROS file. It took me a while to
isolate the problem.
>Where does the infinite loop occur?
It is in the "for (;;)" loop in DocComment::parseDocMain. I turned on
debug, so I know it was executing one of the two
DEBUG(">>>")
statements. I didn't track it any further than that.
>The problem in this case is that the characters >, <, and & must be
>escaped in HTML or XML content. The respective substitutions are:
>
> < <
> > >
> & &
Yes, it no longer looped when I made that change.
More information about the coyotos-dev
mailing list