Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl

bug in eputil.c

 

 

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded


mda at discerning

Apr 1, 2007, 9:03 PM

Post #1 of 3 (1418 views)
Permalink
bug in eputil.c

If you make the mistake of setting EMBPERL_OUTPUT_MODE=XML
instead of EMBPERL_OUTPUT_MODE=1
then embperl_OptionListSearch in eputil.c will go into
an infinite loop.

I don't see how that code can possibly work, since
both sKeyword loop and the pEntry->sOption inner loop
look like infinite loop risks to me.

-mda

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


richter at ecos

Apr 2, 2007, 7:03 AM

Post #2 of 3 (1305 views)
Permalink
RE: bug in eputil.c [In reply to]

Hi,

> If you make the mistake of setting EMBPERL_OUTPUT_MODE=XML
> instead of EMBPERL_OUTPUT_MODE=1 then
> embperl_OptionListSearch in eputil.c will go into an infinite loop.
>
> I don't see how that code can possibly work, since both
> sKeyword loop and the pEntry->sOption inner loop look like
> infinite loop risks to me.
>

That's true. This part of the code is not really finished and therfore
not documented. So don't use it.

Patches are of course welcome

Gerald



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


mda at discerning

Apr 2, 2007, 8:44 AM

Post #3 of 3 (1286 views)
Permalink
RE: bug in eputil.c [In reply to]

On Mon, 2 Apr 2007 16:03:49 +0200, "Gerald Richter - ECOS GmbH" <richter [at] ecos> said:
> Hi,
>
> > If you make the mistake of setting EMBPERL_OUTPUT_MODE=XML
> > instead of EMBPERL_OUTPUT_MODE=1 then
> > embperl_OptionListSearch in eputil.c will go into an infinite loop.
> >
> > I don't see how that code can possibly work, since both
> > sKeyword loop and the pEntry->sOption inner loop look like
> > infinite loop risks to me.
> >
>
> That's true. This part of the code is not really finished and therfore
> not documented. So don't use it.

Well, I didn't use it deliberately. I just misread
http://www.ecos.de/embperl/pod/doc/Config.-page-2-.htm#sect_44
and thought I could set output mode to "XML".

-mda

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.