httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject RE: WWW Form Bug Report: "infinite looping in mod_mime.c and mod_auth.c under dg/ux" on OTHER:dg/ux (fwd)
Date Tue, 18 Jun 1996 14:54:54 GMT

Ben, do you want to ack this?


Message-Id: <01BB5D2A.D9F767A0@kootchey.europe.dg.com>
From: Stuart Harris <stuart@elektra.europe.dg.com>
To: "'robh@imdb.com'" <robh@imdb.com>
Subject: RE: WWW Form Bug Report: "infinite looping in mod_mime.c and mod_auth.c under dg/ux"
on OTHER:dg/ux
Date: Tue, 18 Jun 1996 15:27:42 +-100
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="---- =_NextPart_000_01BB5D2A.DA222120"


------ =_NextPart_000_01BB5D2A.DA222120
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello Rob, it's me again!!
  After a little more investigation I've discovered that there are other =
places where the same problem exists.  I noticed that the dir module =
would loop at line 794 (mod_dir.c) whilst trying to display the contents =
of a directory for which there is no DirectoryIndex file.
The fix:
    while (strlen(names_ptr) !=3D 0) {
	char *name_ptr =3D getword_conf (r->pool, &names_ptr);
	...
    }
It would therefore seem that there is a potential problem every time =
getword_conf is called and the condition is dependant on the result =
being NULL.
I'm not quite sure why it is that DG/UX behaves this way - but I guess =
the code has to be able to run on all platforms.
Thanks a lot for your help in fixing this.
Rgds.,
Stuart

----------
From: 	Rob Hartill[SMTP:robh@imdb.com]
Sent: 	18 June 1996 13:56
To: 	stuart@elektra.europe.dg.com
Subject: 	Re: WWW Form Bug Report: "infinite looping in mod_mime.c and =
mod_auth.c under dg/ux" on OTHER:dg/ux


Thanks for the report and fix.

regards,
rob


>Submitter: stuart@elektra.europe.dg.com
>Operating system: OTHER:dg/ux, version: 5.4R3.10
>Version of Apache Used: 1.1b4
>Extra Modules used:=20
>URL exhibiting problem:=20
>
>Symptoms:
>--
>Whilst reading in mime types from conf/mime.types the mime module goes =
into infinite loop, eating up all available memory.
>Under DG/UX the following while condition NEVER  equates to NULL.
>The following mod fixes the problem:
>
>/*        while(ll[0]) */
>        while(strlen(ll) !=3D 0) {
>            char *ext =3D getword_conf (p, &ll);
>            str_tolower (ext);	/* ??? */
>            table_set (hash_buckets[hash(ext[0])], ext, ct);
>         }
>
>The problem also exists in mod_auth.c
>--
>
>Backtrace:
>--
>
>--


--=20
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.



------ =_NextPart_000_01BB5D2A.DA222120
Content-Type: application/ms-tnef
Content-Transfer-Encoding: base64

eJ8+IjMOAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQmAAQAhAAAAQjVERDMzQ0FGOEM4Q0YxMUFEMzUwMEEwMjQzRDNE
Q0MAZQcBBYADAA4AAADMBwYAEgAPABsAKgACAEEBASCAAwAOAAAAzAcGABIADwAcABwAAgA0AQEE
kAYAGAEAAAEAAAANAAAAAwAAMAAAAAALAA8OAAAAAAIB/w8BAAAAOwAAAAAAAACBKx+kvqMQGZ1u
AN0BD1QCAAAAACdyb2JoQGltZGIuY29tJwBTTVRQAHJvYmhAaW1kYi5jb20AAB4AAjABAAAABQAA
AFNNVFAAAAAAHgADMAEAAAAOAAAAcm9iaEBpbWRiLmNvbQAAAAIB9g8BAAAABAAAAAAAAAADABUM
AQAAAAIBCzABAAAAEwAAAFNNVFA6Uk9CSEBJTURCLkNPTQAAHgABMAEAAAAQAAAAJ3JvYmhAaW1k
Yi5jb20nAB4AIDoBAAAAEAAAACdyb2JoQGltZGIuY29tJwALAEA6AQAAAAMA/g8GAAAAAwAAOQAA
AABALQENgAQAAgAAAAIAAgABBIABAGQAAABSRTogV1dXIEZvcm0gQnVnIFJlcG9ydDogImluZmlu
aXRlIGxvb3BpbmcgaW4gbW9kX21pbWUuYyBh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j1TSEFSUklTAAAAAB4A+j8BAAAADgAAAFN0dWFydCBIYXJyaXMAAABAAAcwwu4i
TyJduwFAAAgwMjLHaiJduwEDAA00/T8AAAIBFDQBAAAAEAAAAFSUocApfxAbpYcIACsqJRceAD0A
AQAAAAUAAABSRTogAAAAACfi

------ =_NextPart_000_01BB5D2A.DA222120--

----- End of forwarded message from Stuart Harris -----

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.

Mime
View raw message