Re: Bug in gw/wap_push_pap_compiler.c - infinite loop
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Wapme Systems AG |
| Message-ID | <[email protected]> |
Paul Keogh wrote:
>
> In the function parse_content (), the lines
>
> while (octstr_get_char(*address, pos) !=
> octstr_get_char(nameos, 0) && pos >= 0) {
> pos = drop_character(address, pos);
> }
>
> should be replaced with
>
> while ((octstr_len (*address) > 0) && octstr_get_char(*address, pos) !=
> octstr_get_char(nameos, 0) && pos >= 0) {
> pos = drop_character(address, pos);
> }
>
> otherwise an infinite loop results. This is easy to reproduce. Drop
> the /TYPE=xxx from an address in the PAP document. This should give
> back an error; instead the WAP box hangs in an infinite loop.
commited to cvs.
Thanks Paul!
Stipe
[email protected]
-------------------------------------------------------------------
Wapme Systems AG
Vogelsanger Weg 80
40470 Düsseldorf
Tel: +49-211-74845-0
Fax: +49-211-74845-299
E-Mail: [email protected]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are