You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Vladimir Davydoff <vv...@svzserv.kemerovo.su> on 1998/11/20 05:34:13 UTC

mod_mime/3427: apache core dump when started with locale other then C

>Number:         3427
>Category:       mod_mime
>Synopsis:       apache core dump when started with locale other then C
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Nov 19 20:40:00 PST 1998
>Last-Modified:
>Originator:     vvdav@svzserv.kemerovo.su
>Organization:
apache
>Release:        1.3.3
>Environment:
FreeBSD 2.2.7
>Description:
In mod_mime.c structure array hash_buckets has 27 elements. When locale
is set to national language, is_alpha returns "true" not only for [A-Z,a-z]
and hash() may be > 27. In function find_ct:
" || (type = ap_table_get(hash_buckets[hash(*ext)], ext))) { "
                          ^^^^^^^^^^^^^^^^^^^^^^^^
is out of memory.
>How-To-Repeat:
Access to file "any.�������.html"
>Fix:
1. Increase MIME_HASHSIZE to 258 :-)
2. Fix hash()
3. Start apache with environment setting locale to C
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]