Hi,

I found this bug recently by patching the hard coded PAP document to
use a SI instead of the WML deck in test/test_ppg.c.

To support SI/SL over SMS I changed the following:

[...]
<quality-of-service
  [...]
  network-required="true"
  network="GSM"

and by mistake added the following:

  bearer-required="true">  // BUG!
  bearer="SMS">
</quality-of-service>
[...]

which is obviously not a valid XML structured document!

Running 

  $ ./test_ppg -H http://localhost/cgi-bin/wap-push.cgi

caused wapbox to panic and crash with the following wapbox.log entry:

[...]
2001-10-25 17:02:49 [11] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2001-10-25 17:02:49 [13] INFO: PPG: Accept request
</cgi-bin/wap-push.cgi> from <127.0.0.1>
2001-10-25 17:02:49 [13] DEBUG: PPG: http_read_thread: pap multipart
accepted
2001-10-25 17:02:49 [13] PANIC: gwlib/octstr.c:2032: seems_valid_real:
Assertion `ostr != NULL' failed. (Called from
gwlib/octstr.c:728:octstr_compare.)
[...]

so obviously we do not parse the PAP document very good here?!

Stipe

[EMAIL PROTECTED]
-------------------------------------------------------------------
Wapme Systems AG

Münsterstr. 248
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

Reply via email to